public Guid CreateArrestAlcoholDrugTest(Guid arrestId, ArrestAlcoholDrugTestDetails details) { var arrestDrugTest = CreateReportEntity(arrestId, details, (agency, id) => new ArrestAlcoholDrugTest(IdentityId, agency, id), (report, drugTest) => report.AlcoholDrugTests.Add(drugTest)); return(arrestDrugTest.Id); }
public Guid CreateArrestAlcoholDrugTest(Guid arrestId, ArrestAlcoholDrugTestDetails details) { var alcoholDrugTest = CreateSummaryEntity(arrestId, details, (agency, id) => new ArrestAlcoholDrugTest(IdentityId, agency, id), (summary, drugTest) => summary.AlcoholDrugTests.Add(drugTest)); return(alcoholDrugTest.Id); }
public void UpdateArrestAlcoholDrugTest(ArrestAlcoholDrugTestDetails details) { Update <ArrestAlcoholDrugTest, ArrestAlcoholDrugTestDetails>(details); }
public ArrestAlcoholDrugTestDetails CreateAlcoholDrugTest(Guid id, ArrestAlcoholDrugTestDetails section) { section.Id = _arrestSummaryCommandService.CreateArrestAlcoholDrugTest(id, section); return(section); }
public void UpdateAlcoholDrugTest(ArrestAlcoholDrugTestDetails section) { _arrestSummaryCommandService.UpdateArrestAlcoholDrugTest(section); }