public ActionResult CreateTehsilsModle() { MdlDistrictandTehsils Pmodel = new MdlDistrictandTehsils(); MngDistrictandTehsils ObjApp = new MngDistrictandTehsils(); Pmodel.GetAllDistrictsDrp = ObjApp.GetAllDistrict(0); return(PartialView("~/Views/Home/PartialViews/_CreateTehsilModel.cshtml", Pmodel)); }
public ActionResult UpdateDistrictModle(int Id) { MdlDistrictandTehsils Pmodel = new MdlDistrictandTehsils(); MngDistrictandTehsils mobj = new MngDistrictandTehsils(); Pmodel = mobj.EditDistrict(Id); return(PartialView("~/Views/Home/PartialViews/_CreateDistrictModle.cshtml", Pmodel)); }
public ActionResult UpdateTeshilModle(int Id) { MdlDistrictandTehsils Pmodel = new MdlDistrictandTehsils(); MngDistrictandTehsils ObjApp = new MngDistrictandTehsils(); Pmodel = ObjApp.EditTehsil(Id); Pmodel.GetAllDistrictsDrp = ObjApp.GetAllDistrict(Pmodel.DistrictID); return(PartialView("~/Views/Home/PartialViews/_CreateTehsilModel.cshtml", Pmodel)); }
public MdlDistrictandTehsils EditDistrict(int id) { DISTRICT item = _dbFirms.DISTRICTs.Where(x => x.DistrictID == id).SingleOrDefault(); MdlDistrictandTehsils model = new MdlDistrictandTehsils(); model.DistrictID = item.DistrictID; model.DistrictName = item.DistrictName; return(model); }
public MdlDistrictandTehsils EditTehsil(int id) { TEHSIL item = _dbFirms.TEHSILs.Where(x => x.TehsilID == id).SingleOrDefault(); MdlDistrictandTehsils model = new MdlDistrictandTehsils(); model.DistrictID = item.District_ID; model.TehsilName = item.TehsilName; model.TehsilID = item.TehsilID; return(model); }
public ActionResult Setups() { if (sig != null) { MngDistrictandTehsils objApp = new MngDistrictandTehsils(); MdlDistrictandTehsils modellist = new MdlDistrictandTehsils(); modellist.DistrictList = objApp.GetAllDistrictsList(); modellist.TehsilList = objApp.GetAllTehsilList(); return(View(modellist)); } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult CreateDistrictModle() { MdlDistrictandTehsils Pmodel = new MdlDistrictandTehsils(); return(PartialView("~/Views/Home/PartialViews/_CreateDistrictModle.cshtml", Pmodel)); }