public async Task <Guid> Create(SheetRequest sheetRequest) { var sheet = SheetAggregate.CreateFromSheetRequest(sheetRequest); await _sheetRepo.Add(sheet); return(sheet.Id); }
public async Task <Guid> Create(SheetCreateRequest request) { var sheet = SheetAggregate.CreateFromRequest(request); await _repo.Add(sheet); return(sheet.Id); }
public async Task <Guid> Create(SheetRequest sheetRequest) { var sheet = new Sheet { Id = Guid.NewGuid(), Amount = sheetRequest.Amount, ContractId = sheetRequest.ContractId, Date = sheetRequest.Date, EmployeeId = sheetRequest.EmployeeId, ServiceId = sheetRequest.ServiceId }; await _sheetRepo.Add(sheet); return(sheet.Id); }