public Guid CreateArrestOfficer(Guid arrestId, ArrestOfficerDetails details)
        {
            var arrestOfficer = CreateReportEntity(arrestId, details,
                                                   (agency, id) => new PublicSafetyOfficer(IdentityId, agency, id),
                                                   (report, officer) => report.Officers.Add(officer));

            return(arrestOfficer.Id);
        }
Beispiel #2
0
        public Guid CreateArrestOfficer(Guid arrestId, ArrestOfficerDetails details)
        {
            var arrestOfficer = CreateSummaryEntity(arrestId, details,
                                                    (agency, id) => new PublicSafetyOfficer(IdentityId, agency, id),
                                                    (summary, officer) => summary.Officers.Add(officer));

            return(arrestOfficer.Id);
        }
 public void UpdateArrestOfficer(ArrestOfficerDetails details)
 {
     Update <PublicSafetyOfficer, ArrestOfficerDetails>(details);
 }
 public void UpdateOfficer(ArrestOfficerDetails section)
 {
     _arrestSummaryCommandService.UpdateArrestOfficer(section);
 }
        public ArrestOfficerDetails CreateOfficer(Guid id, ArrestOfficerDetails section)
        {
            section.Id = _arrestSummaryCommandService.CreateArrestOfficer(id, section);

            return(section);
        }