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 CreateOtherEventDrug(Guid otherEventId, OtherEventDrugDetails details)
        {
            var drug = CreateSummaryEntity(otherEventId, details,
                                           (agency, id) => new PublicSafetyDrug(IdentityId, agency, id),
                                           (summary, otherEventDrug) => summary.Drugs.Add(otherEventDrug));

            return(drug.Id);
        }
        public Guid CreateOtherEventDrug(Guid otherEventId, OtherEventDrugDetails details)
        {
            var drug = CreateReportEntity(otherEventId, details,
                                          (agency, id) => new PublicSafetyDrug(IdentityId, agency, id),
                                          (report, otherEventDrug) => report.Drugs.Add(otherEventDrug));

            return(drug.Id);
        }
 public void UpdateOtherEventDrug(OtherEventDrugDetails details)
 {
     Update <PublicSafetyDrug, OtherEventDrugDetails>(details);
 }
 public void UpdateDrug(OtherEventDrugDetails section)
 {
     _otherEventSummaryCommandService.UpdateOtherEventDrug(section);
 }
        public OtherEventDrugDetails CreateDrug(Guid id, OtherEventDrugDetails section)
        {
            section.Id = _otherEventSummaryCommandService.CreateOtherEventDrug(id, section);

            return(section);
        }