コード例 #1
0
        public Guid CreateArrestProperty(Guid arrestId, ArrestPropertyDetails details)
        {
            var arrestProp = CreateReportEntity(arrestId, details,
                                                (agency, id) => new PublicSafetyProperty(IdentityId, agency, id),
                                                (report, prop) => report.Property.Add(prop));

            return(arrestProp.Id);
        }
コード例 #2
0
        public Guid CreateArrestProperty(Guid arrestId, ArrestPropertyDetails details)
        {
            var arrestProperty = CreateSummaryEntity(arrestId, details,
                                                     (agency, id) => new PublicSafetyProperty(IdentityId, agency, id),
                                                     (summary, property) => summary.Property.Add(property));

            return(arrestProperty.Id);
        }
コード例 #3
0
 public void UpdateArrestProperty(ArrestPropertyDetails details)
 {
     Update <PublicSafetyProperty, ArrestPropertyDetails>(details);
 }
コード例 #4
0
        public ArrestPropertyDetails CreateProperty(Guid id, ArrestPropertyDetails section)
        {
            section.Id = _arrestSummaryCommandService.CreateArrestProperty(id, section);

            return(section);
        }
コード例 #5
0
 public void UpdateProperty(ArrestPropertyDetails section)
 {
     _arrestSummaryCommandService.UpdateArrestProperty(section);
 }