public Guid CreateIncidentVehicle(Guid incidentId, IncidentVehicleDetails details) { var vehicle = CreateSummaryEntity(incidentId, details, (agency, id) => new PublicSafetyVehicle(IdentityId, agency, id), (summary, incidentVehicle) => summary.Vehicles.Add(incidentVehicle)); return(vehicle.Id); }
private void DTOObjectsIntitalization() { _agencyId = Guid.NewGuid(); _agencyId = Guid.NewGuid(); _identityId = Guid.NewGuid(); _incidentSummaryDetails = new IncidentSummaryDetails(); _incidentEventDetails = new IncidentEventDetails(); _incidentNarrativeDetails = new IncidentNarrativeDetails(); _incidentOfficerDetails = new IncidentOfficerDetails(); _incidentVehicleDetails = new IncidentVehicleDetails(); _incidentPersonOtherDetails = new IncidentPersonOtherDetails(); _incidentDrugDetails = new IncidentDrugDetails(); _incidentGunDetails = new IncidentGunDetails(); _incidentOffenseDetails = new IncidentOffenseDetails(); _incidentOfficerInvolvedShootingDetails = new IncidentOfficerInvolvedShootingDetails(); _incidentPersonVictimDetails = new IncidentPersonVictimDetails(); _incidentPersonSuspectDetails = new IncidentPersonSuspectDetails(); _incidentPropertyDetails = new IncidentPropertyDetails(); _incidentOrganizationDetails = new IncidentOrganizationDetails(); _incidentSummaryDetails.Id = _incidentEventDetails.Id = _incidentNarrativeDetails.Id = _incidentOfficerDetails.Id = _incidentVehicleDetails.Id = _incidentPersonOtherDetails.Id = _incidentOrganizationDetails.Id = _incidentPropertyDetails.Id = _incidentPersonSuspectDetails.Id = _incidentPersonVictimDetails.Id = _incidentDrugDetails.Id = _incidentOfficerInvolvedShootingDetails.Id = _incidentGunDetails.Id = _incidentOffenseDetails.Id = _incidentOffenseDetails.Id = Guid.NewGuid(); }
public void UpdateVehicle(IncidentVehicleDetails section) { _incidentReportCommandService.UpdateIncidentVehicle(section); }
public IncidentVehicleDetails CreateVehicle(Guid id, IncidentVehicleDetails section) { section.Id = _incidentReportCommandService.CreateIncidentVehicle(id, section); return(section); }
public void UpdateIncidentVehicle(IncidentVehicleDetails details) { Update <PublicSafetyVehicle, IncidentVehicleDetails>(details); }