private async Task <ReceiptBatch> CreateBatch(BatchReceiptEditorForm editor) { var batch = editor.BuildBatch(context); context.Batches.Add(batch); await context.SaveChangesAsync(); return(batch); }
public AddOrEditBatchReceiptCommand(BatchReceiptEditorForm editor, ModelStateDictionary modelState) { Editor = editor; ModelState = modelState; }