private void DTOObjectsIntitalization() { _agencyId = Guid.NewGuid(); _agencyId = Guid.NewGuid(); _identityId = Guid.NewGuid(); _otherEventSummaryDetails = new OtherEventSummaryDetails(); _otherEventEventDetails = new OtherEventEventDetails(); _otherEventNarrativeDetails = new OtherEventNarrativeDetails(); _otherEventOfficerDetails = new OtherEventOfficerDetails(); _otherEventVehicleDetails = new OtherEventVehicleDetails(); _otherEventDrugDetails = new OtherEventDrugDetails(); _otherEventGunDetails = new OtherEventGunDetails(); _otherEventOffenseDetails = new OtherEventOffenseDetails(); _otherEventPropertyDetails = new OtherEventPropertyDetails(); _otherEventOrganizationDetails = new OtherEventOrganizationDetails(); _otherEventSummaryDetails.Id = _otherEventEventDetails.Id = _otherEventNarrativeDetails.Id = _otherEventOfficerDetails.Id = _otherEventVehicleDetails.Id = _otherEventOrganizationDetails.Id = _otherEventPropertyDetails.Id = _otherEventDrugDetails.Id = _otherEventGunDetails.Id = _otherEventOffenseDetails.Id = _otherEventOffenseDetails.Id = Guid.NewGuid(); }
public Guid CreateOtherEventOfficer(Guid otherEventId, OtherEventOfficerDetails details) { var officer = CreateSummaryEntity(otherEventId, details, (agency, id) => new PublicSafetyOfficer(IdentityId, agency, id), (summary, otherEventOfficer) => summary.Officers.Add(otherEventOfficer)); return(officer.Id); }
public Guid CreateOtherEventOfficer(Guid otherEventId, OtherEventOfficerDetails details) { var officer = CreateReportEntity(otherEventId, details, (agency, id) => new PublicSafetyOfficer(IdentityId, agency, id), (report, otherEventOfficer) => report.Officers.Add(otherEventOfficer)); return(officer.Id); }
public void UpdateOtherEventOfficer(OtherEventOfficerDetails details) { Update <PublicSafetyOfficer, OtherEventOfficerDetails>(details); }
public void UpdateOfficer(OtherEventOfficerDetails section) { _otherEventSummaryCommandService.UpdateOtherEventOfficer(section); }
public OtherEventOfficerDetails CreateOfficer(Guid id, OtherEventOfficerDetails section) { section.Id = _otherEventSummaryCommandService.CreateOtherEventOfficer(id, section); return(section); }