profileShare

rasmusjy / splitapp-backend-microservices

Read-only snapshot

No repository description.

main default branch 501 files Expires Sep 13, 2026, 9:06 AM
IBudgetCategoryService.cs 786 bytes
1 using SplitApp.WebApp.Application.DTO;
2
3 namespace SplitApp.WebApp.Application.Services;
4
5 public interface IBudgetCategoryService
6 {
7 Task<List<BudgetCategoryBllDto>> GetByTripIdAsync(Guid tripId, Guid userId); // participant-only
8 Task<List<BudgetCategoryBllDto>> GetByTripIdRawAsync(Guid tripId); // no IDOR, used for dropdowns post-check
9 Task<BudgetCategoryBllDto?> GetByIdAsync(Guid id); // raw (no IDOR yet)
10
11 Task<(BudgetCategoryBllDto? category, string? errorCode)> CreateAsync(BudgetCategoryBllDto category, Guid userId); // organizer only
12 Task<(bool success, string? errorCode)> UpdateAsync(Guid id, BudgetCategoryBllDto incoming, Guid userId); // organizer only
13 Task<(bool success, string? errorCode)> DeleteAsync(Guid id, Guid userId); // organizer only
14 }
15