feat: DTOs and interfaces
This commit is contained in:
13
Services/Interfaces/IMissionCategoryService.cs
Normal file
13
Services/Interfaces/IMissionCategoryService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using GamificationService.Models.Database;
|
||||
|
||||
namespace GamificationService.Services.Interfaces;
|
||||
|
||||
public interface IMissionCategoryService
|
||||
{
|
||||
Task<MissionCategory?> GetCategoryByIdAsync(Guid categoryId);
|
||||
Task<MissionCategory?> GetCategoryByTitleAsync(string title);
|
||||
Task<IEnumerable<MissionCategory>> GetAllCategoriesAsync();
|
||||
Task<MissionCategory> CreateCategoryAsync(MissionCategory category);
|
||||
Task<MissionCategory> UpdateCategoryAsync(MissionCategory category);
|
||||
Task<bool> DeleteCategoryAsync(Guid categoryId);
|
||||
}
|
||||
Reference in New Issue
Block a user