-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIModelHelper.cs
More file actions
23 lines (22 loc) · 834 Bytes
/
Copy pathIModelHelper.cs
File metadata and controls
23 lines (22 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace TalentManagementAPI.Application.Interfaces
{
/// <summary>
/// Interface for model helper.
/// </summary>
public interface IModelHelper
{
/// <summary>
/// Gets the fields of a model.
/// </summary>
/// <typeparam name="T">The type of the model.</typeparam>
/// <returns>The fields of the model as a string.</returns>
string GetModelFields<T>();
/// <summary>
/// Validates the fields of a model.
/// </summary>
/// <typeparam name="T">The type of the model.</typeparam>
/// <param name="fields">The fields to validate as a string.</param>
/// <returns>A validation message if there are any errors, or null if all fields are valid.</returns>
string ValidateModelFields<T>(string fields);
}
}