Ejemplo n.º 1
0
        public ResultEntity <IEnumerable <CityEntity> > GetAll(DBParamEntity dbParamEntity)
        {
            var validationResult = new ResultEntity <IEnumerable <CityEntity> >();

            using (var cityDA = new CityDA())
            {
                validationResult.Value = cityDA.GetAll(dbParamEntity);
            }

            return(validationResult);
        }
Ejemplo n.º 2
0
        public ActionResult AjaxForm()
        {
            var googleMap = new GoogleMap();

            if (DoAction == ActionType.Edit)
            {
                googleMap = _googleMapDa.GetById(ArrId.FirstOrDefault());
            }
            ViewBag.LstCity     = _systemCityDa.GetAll();
            ViewBag.LstDistrict = _systemDistrictDa.GetAllListSimple();
            ViewData.Model      = googleMap;
            ViewBag.Action      = DoAction;
            ViewBag.ActionText  = ActionText;
            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult AjaxForm()
        {
            var districtModel = new System_District
            {
                IsShow = true
            };

            if (DoAction == ActionType.Edit)
            {
                districtModel = _districtDa.GetById(ArrId.FirstOrDefault());
            }

            ViewBag.DistrictCityID = _cityDa.GetAll();
            ViewData.Model         = districtModel;
            ViewBag.Action         = DoAction;
            ViewBag.ActionText     = ActionText;
            return(View());
        }
Ejemplo n.º 4
0
 /// <summary>
 /// This Function is used to get list of all the Cities from Database.
 /// </summary>
 public static List <City> GetAll()
 {
     return(CityDA.GetAll());
 }
Ejemplo n.º 5
0
        public ActionResult GetAll(string key)
        {
            var obj = key != Keyapi ? new List <CityItem>() : _da.GetAll();

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }