Refactor. Add data layer
This commit is contained in:
1 parent
3b7e4e6ec5
commit
b6b794f0b4
82 files changed
+2930
-2811
No files matched your search
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
Reference in new issue
Block a user