public async Task SaveLegislationEntry(SaveLegislationModel entry) { var user = await this.usersService.GetCurrentApplicationUser(); var model = new CaseEditorDetailModel() { Jurisdiction = entry.Jurisdiction, NationalLawRecords = new[] { entry.LegislationEntry } }; this.AutogenerateLegislationEntries(model, user); await this.context.SaveChangesAsync(); }
public async Task <IActionResult> SaveLegislationEntry(SaveLegislationModel entry) { await this.caseService.SaveLegislationEntry(entry); return(this.Ok()); }