Interfaces woohoo

This commit is contained in:
2025-09-30 22:46:22 +03:00
parent 0021c352dc
commit fa68622ed1
13 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using LctMonolith.Models.Database;
namespace LctMonolith.Services.Interfaces;
public interface IMissionCategoryService
{
// CRUD should be enough
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);
}