Beispiel #1
0
        public ActionResult Create()
        {
            MstDestinationManageModel obj        = new MstDestinationManageModel();
            dalMstCountry             objCountry = new dalMstCountry();

            obj.MstCountryDropDown = objCountry.MstCountryList;
            return(PartialView("pvCreate", obj));
        }
Beispiel #2
0
        public ActionResult Edit(long id)
        {
            MstDestinationManageModel obj        = new MstDestinationManageModel();
            dalMstCountry             objCountry = new dalMstCountry();

            obj.MstCountryDropDown  = objCountry.MstCountryList;
            obj.utblMstDestinations = db.GetDestinationByID(id);
            return(PartialView("pvEdit", obj));
        }
Beispiel #3
0
        public ActionResult Edit(MstDestinationManageModel data)
        {
            if (ModelState.IsValid)
            {
                TempData["ErrMsg"] = db.Save(data.utblMstDestinations);
                return(Json(new { success = true }));
            }
            dalMstCountry objCountry = new dalMstCountry();

            data.MstCountryDropDown = objCountry.MstCountryList;
            return(PartialView("pvEdit", data));
        }
Beispiel #4
0
        public ActionResult Create(MstDestinationManageModel destination)
        {
            dalMstCountry objCountry = new dalMstCountry();

            if (ModelState.IsValid)
            {
                TempData["ErrMsg"] = db.Save(destination.utblMstDestinations);
                return(Json(new { success = true }));
            }
            destination.MstCountryDropDown = objCountry.MstCountryList;
            return(PartialView("pvCreate", destination));
        }