* Maintain DataModel for User, Role, Function and UserRole
This commit is contained in:
12
OrdersManagementDataModel/Services/IRoleService.cs
Normal file
12
OrdersManagementDataModel/Services/IRoleService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using OrdersManagementDataModel.Dtos;
|
||||
|
||||
namespace OrdersManagementDataModel.Services;
|
||||
|
||||
public interface IRoleService
|
||||
{
|
||||
Task<IEnumerable<RoleDto>> GetRoles();
|
||||
Task<RoleDto?> GetRoleById(Guid id);
|
||||
Task<RoleDto?> GetRoleByName(string name);
|
||||
Task<int> AddRole(RoleDto roleDto);
|
||||
Task<int> DeleteRole(Guid id);
|
||||
}
|
||||
Reference in New Issue
Block a user