public PersonViewModel(vw_PersonData _PersonData, ILookupService lookupService, IPersonService PersonService, Modes Mode = Modes.Add)
 {
     this.PersonData = _PersonData;
     Cities          = lookupService.GetAllCitites();
     PoliceStations  = new List <vw_KeyValue>();
     PoliceStations  = lookupService.GetAllPoliceStations();
     Nationalities   = lookupService.GetLookupsByCategory(Base.LookupsCategories.Nationalities);
     if (Mode == Modes.Update)
     {
         if (PersonService.NumberOfAttachedCases(PersonData.ID) <= 1)
         {
             IsLocked = true;
         }
     }
     // Added By John 13/3/2018
     else if (PersonData.ID != 0 && PersonService.NumberOfAttachedCases(PersonData.ID) == 0)
     {
         IsLocked = true;
     }
     // Commented by John 13/3/2018
     //else if (PersonService.NumberOfAttachedCases(PersonData.ID) == 0)
     //    IsLocked = true;
     else
     {
         IsLocked = false;
     }
 }
        public WitnessViewModel PersonViewModel()
        {
            List <vw_KeyValue> PoliceStations = new List <vw_KeyValue>();

            return(new WitnessViewModel
            {
                Cities = LookupService.GetAllCitites(),
                PoliceStations = LookupService.GetAllPoliceStations(),
                Nationalities = LookupService.GetLookupsByCategory(Base.LookupsCategories.Nationalities)
            });
        }