Files
ROLAC/API/ROLAC.API/Services/IExpenseCategoryService.cs
T
Chris Chen 015f689d9b feat(expense): add ExpenseCategoryService + tests
TDD cycle: wrote 3 xUnit tests first (red), then implemented
IExpenseCategoryService + ExpenseCategoryService (green).
2026-05-29 18:24:07 -07:00

14 lines
539 B
C#

using ROLAC.API.DTOs.Expense;
namespace ROLAC.API.Services;
public interface IExpenseCategoryService
{
Task<List<ExpenseCategoryGroupDto>> GetAllAsync(bool includeInactive);
Task<int> CreateGroupAsync(CreateExpenseGroupRequest r);
Task UpdateGroupAsync(int id, UpdateExpenseGroupRequest r);
Task DeactivateGroupAsync(int id);
Task<int> CreateSubCategoryAsync(CreateExpenseSubCategoryRequest r);
Task UpdateSubCategoryAsync(int id, UpdateExpenseSubCategoryRequest r);
Task DeactivateSubCategoryAsync(int id);
}