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); }
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()); }
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()); }
/// <summary> /// This Function is used to get list of all the Cities from Database. /// </summary> public static List <City> GetAll() { return(CityDA.GetAll()); }
public ActionResult GetAll(string key) { var obj = key != Keyapi ? new List <CityItem>() : _da.GetAll(); return(Json(obj, JsonRequestBehavior.AllowGet)); }