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 CreateOtherEventOffense(Guid otherEventId, OtherEventOffenseDetails details)
        {
            var offense = CreateSummaryEntity(otherEventId, details,
                                              (agency, id) => new PublicSafetyOffense(IdentityId, agency, id),
                                              (summary, otherEventOffense) => summary.Offenses.Add(otherEventOffense));

            return(offense.Id);
        }
        public Guid CreateOtherEventOffense(Guid otherEventId, OtherEventOffenseDetails details)
        {
            var offense = CreateReportEntity(otherEventId, details,
                                             (agency, id) => new PublicSafetyOffense(IdentityId, agency, id),
                                             (report, otherEventOffense) => report.Offenses.Add(otherEventOffense));

            return(offense.Id);
        }
 public void UpdateOtherEventOffense(OtherEventOffenseDetails details)
 {
     Update <PublicSafetyOffense, OtherEventOffenseDetails>(details);
 }
        public OtherEventOffenseDetails CreateOffense(Guid id, OtherEventOffenseDetails section)
        {
            section.Id = _otherEventSummaryCommandService.CreateOtherEventOffense(id, section);

            return(section);
        }
 public void UpdateOffense(OtherEventOffenseDetails section)
 {
     _otherEventSummaryCommandService.UpdateOtherEventOffense(section);
 }