Beispiel #1
0
        public async Task <Guid> Create(SheetRequest sheetRequest)
        {
            var sheet = SheetAggregate.CreateFromSheetRequest(sheetRequest);

            await _sheetRepo.Add(sheet);

            return(sheet.Id);
        }
Beispiel #2
0
 public async Task Update(Guid id, SheetRequest sheetRequest)
 {
     var sheet = SheetAggregate.CreateFromSheetRequest(sheetRequest);
     await _sheetRepo.Update(sheet);
 }