public Models.Lookup.SubCityModel GetSubCityByID(int SubCityID)
        {
            BusinessLogic.Lookup.SubCityManager SubCityManager = new BusinessLogic.Lookup.SubCityManager();
            BusinessEntity.Lookup.SubCityEntity SubCity        = SubCityManager.GetSubCityByID(SubCityID);

            return(new Models.Lookup.SubCityModel(SubCity));
        }
        public List <Models.Lookup.SubCityModel> GetSubCitys()
        {
            BusinessLogic.Lookup.SubCityManager SubCityManager = new BusinessLogic.Lookup.SubCityManager();

            List <BusinessEntity.Lookup.SubCityEntity> SubCitys      = SubCityManager.GetSubCitys();
            List <Models.Lookup.SubCityModel>          SubCityModels = new List <Models.Lookup.SubCityModel>();

            foreach (BusinessEntity.Lookup.SubCityEntity SubCity in SubCitys)
            {
                SubCityModels.Add(new Models.Lookup.SubCityModel(SubCity));
            }

            return(SubCityModels);
        }
        public BusinessEntity.Result DeleteSubCity(Models.Lookup.SubCityModel SubCity)
        {
            BusinessEntity.Result result = new BusinessEntity.Result();
            try
            {
                BusinessLogic.Lookup.SubCityManager SubCityManager = new BusinessLogic.Lookup.SubCityManager();
                result = SubCityManager.DeleteSubCity(SubCity.MapToEntity <BusinessEntity.Lookup.SubCityEntity>());

                return(result);
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = "SubCity delete failed.";

                return(result);
            }
        }