13 lines
606 B
C#
13 lines
606 B
C#
|
namespace DamageAssesment.Api.UsersAccess.Interfaces
|
|||
|
{
|
|||
|
public interface IRoleProvider
|
|||
|
{
|
|||
|
Task<(bool IsSuccess, IEnumerable< Models.Role> Roles, string ErrorMessage)> GetRolesAsync();
|
|||
|
Task<(bool IsSuccess, Models.Role Roles, string ErrorMessage)> GetRolesAsync(int Id);
|
|||
|
Task<(bool IsSuccess, Models.Role Role, string ErrorMessage)> PostRoleAsync(Models.Role Role);
|
|||
|
Task<(bool IsSuccess, Models.Role Role, string ErrorMessage)> PutRoleAsync(int Id,Models.Role Role);
|
|||
|
Task<(bool IsSuccess, Models.Role Role, string ErrorMessage)> DeleteRoleAsync(int Id);
|
|||
|
|
|||
|
}
|
|||
|
}
|