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 CreateOtherEventProperty(Guid otherEventId, OtherEventPropertyDetails details) { var property = CreateSummaryEntity(otherEventId, details, (agency, id) => new PublicSafetyProperty(IdentityId, agency, id), (summary, otherEventProperty) => summary.Property.Add(otherEventProperty)); return(property.Id); }
public Guid CreateOtherEventProperty(Guid otherEventId, OtherEventPropertyDetails details) { var property = CreateReportEntity(otherEventId, details, (agency, id) => new PublicSafetyProperty(IdentityId, agency, id), (report, otherEventProperty) => report.Property.Add(otherEventProperty)); return(property.Id); }
public void UpdateOtherEventProperty(OtherEventPropertyDetails details) { Update <PublicSafetyProperty, OtherEventPropertyDetails>(details); }
public void UpdateProperty(OtherEventPropertyDetails section) { _otherEventSummaryCommandService.UpdateOtherEventProperty(section); }
public OtherEventPropertyDetails CreateProperty(Guid id, OtherEventPropertyDetails section) { section.Id = _otherEventSummaryCommandService.CreateOtherEventProperty(id, section); return(section); }