public Guid CreateIncidentOrganization(Guid incidentId, DTO.IncidentOrganizationDetails details) { var organization = CreateReportEntity(incidentId, details, (agency, id) => new PublicSafetyOrganization(IdentityId, agency, id), (report, incidentOrganization) => report.Organizations.Add(incidentOrganization)); return(organization.Id); }
public void UpdateIncidentOrganization(DTO.IncidentOrganizationDetails details) { Update <PublicSafetyOrganization, DTO.IncidentOrganizationDetails>(details); }