コード例 #1
0
        public ActionResult CreateTehsilsModle()
        {
            MdlDistrictandTehsils Pmodel = new MdlDistrictandTehsils();
            MngDistrictandTehsils ObjApp = new MngDistrictandTehsils();

            Pmodel.GetAllDistrictsDrp = ObjApp.GetAllDistrict(0);
            return(PartialView("~/Views/Home/PartialViews/_CreateTehsilModel.cshtml", Pmodel));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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"));
            }
        }
コード例 #7
0
        public ActionResult CreateDistrictModle()
        {
            MdlDistrictandTehsils Pmodel = new MdlDistrictandTehsils();

            return(PartialView("~/Views/Home/PartialViews/_CreateDistrictModle.cshtml", Pmodel));
        }