profileShare

rasmusjy / splitapp-backend-clean-onion

Read-only snapshot

No repository description.

main default branch 429 files Expires Sep 13, 2026, 9:06 AM
ISplitPresetService.cs 803 bytes
1 using App.BLL.DTO;
2 using App.Domain;
3
4 namespace App.BLL.Services;
5
6 public interface ISplitPresetService
7 {
8 Task<List<SplitPresetBllDto>> GetByTripIdAsync(Guid tripId, Guid userId); // participant-only
9 Task<SplitPresetBllDto?> GetByIdAsync(Guid id, Guid userId); // participant-only
10
11 Task<(SplitPresetBllDto? preset, string? errorCode)> CreateAsync(SplitPresetBllDto preset,
12 List<(Guid UserId, decimal? ShareWeight, decimal? Percentage)> members, Guid userId); // participant
13 Task<(bool success, string? errorCode)> UpdateAsync(Guid id, string name, ESplitMethod splitMethod,
14 List<(Guid UserId, decimal? ShareWeight, decimal? Percentage)> members, Guid userId); // participant
15 Task<(bool success, string? errorCode)> DeleteAsync(Guid id, Guid userId); // participant
16 }
17