13 lines
406 B
C#
13 lines
406 B
C#
using BudgetApp.Data.Entities;
|
|
|
|
namespace BudgetApp.Data.Interfaces;
|
|
|
|
public interface ICategoryRepository
|
|
{
|
|
Task<List<Category>> GetCategoriesAsync(string userId);
|
|
Task EnsureDefaultCategoriesAsync(string userId);
|
|
Task CreateCategoryAsync(Category category);
|
|
Task UpdateCategoryAsync(int id, string userId, string name, string icon);
|
|
Task DeleteCategoryAsync(int id, string userId);
|
|
}
|