public ActionResult Create() { MstDestinationManageModel obj = new MstDestinationManageModel(); dalMstCountry objCountry = new dalMstCountry(); obj.MstCountryDropDown = objCountry.MstCountryList; return(PartialView("pvCreate", obj)); }
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)); }
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)); }
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)); }