initial commit from an older template
This commit is contained in:
12
Services/Rights/IRightsService.cs
Executable file
12
Services/Rights/IRightsService.cs
Executable file
@@ -0,0 +1,12 @@
|
||||
using GamificationService.Models.Database;
|
||||
|
||||
namespace GamificationService.Services.Rights;
|
||||
|
||||
public interface IRightsService
|
||||
{
|
||||
Task<Right?> CreateRightAsync(string rightName, string description);
|
||||
Task<bool> UpdateRightAsync(long rightId, string newRightName, string newDescription);
|
||||
Task<bool> DeleteRightAsync(long rightId);
|
||||
Task<Right?> GetRightByIdAsync(long rightId);
|
||||
Task<(List<Right> Rights, int TotalCount)> GetAllRightsAsync(int pageNumber = 1, int pageSize = 10);
|
||||
}
|
||||
Reference in New Issue
Block a user