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