// GET: adminuser/City public ActionResult Index() { ViewBag.CountryList = db.ListAll(); ViewBag.StateList = db.Liststates(); return(View()); }
public JsonResult GetbyID(int StateCode) { var states = db.Liststates().Find(x => x.StateCode.Equals(StateCode)); return(Json(states, JsonRequestBehavior.AllowGet)); }