public ActionResult Hlist(ActionDemoModel inputmodel) { var model = ActionDemoModel.GetModell(inputmodel.Id); model.KeyPurchaseIds = inputmodel.KeyPurchaseIds; //return RedirectToAction("Hcombo", new { id = model.Id }); return(View("Hcombo", model)); }
public ActionResult Hcombo(ActionDemoModel inputmodel) { var model = ActionDemoModel.GetModell(inputmodel.Id); if (inputmodel.KeyPurchase.Id != model.KeyPurchase.Id) { model.KeyPurchase = model.PurchasesList .FirstOrDefault(v => v.Id == inputmodel.KeyPurchase.Id); } return(View("Hcombo", model)); }
public ActionResult Hinput2(int?id, string FullName, String Address) { if (!id.HasValue) { return(RedirectToAction("Hinput")); } var model = ActionDemoModel.GetModell(id.Value); model.FullName = FullName; model.Address = Address; return(View("Hinput", model)); }
public ActionResult Hcheck(ActionDemoModel inputmodel, FormCollection formcoll) { var model = ActionDemoModel.GetModell(inputmodel.Id); model.VIP = inputmodel.VIP; if (inputmodel.KeyPurchase.Id != model.KeyPurchase.Id) { model.KeyPurchase = model.PurchasesList .FirstOrDefault(v => v.Id == inputmodel.KeyPurchase.Id); } return(View(model)); }
public ActionResult Hinput(int?id, FormCollection fcoll, string FullNameOrig) { if (!id.HasValue) { return(RedirectToAction("Hinput")); } var model = ActionDemoModel.GetModell(id.Value); if (TryUpdateModel(model)) { return(View(model)); } return(View(ActionDemoModel.GetModell(id.Value))); }
//[ValidateInput(false)] //Potenciális veszély ! public ActionResult Edit(int id, FormCollection collection) { try { ActionDemoModel fpdm = ActionDemoModel.GetModell(id); if (TryUpdateModel(fpdm)) { return(RedirectToAction("Index")); } return(View(fpdm)); } catch { return(View()); } }
public ActionResult Hcombo1(int?id) { var model = ActionDemoModel.GetModell(id ?? 1); ViewData["KeyPurchase.Id"] = new List <SelectListItem>() { new SelectListItem() { Selected = false, Text = "Alma", Value = "1" }, new SelectListItem() { Selected = true, Text = "Körte", Value = "2" }, new SelectListItem() { Selected = false, Text = "Szilva", Value = "3" }, }; return(View(model)); }
public ActionResult Details(int id) { return(View(ActionDemoModel.GetModell(id))); }
//[ActionName("Szerkesztes")] public ActionResult Edit(int id) { return(View(ActionDemoModel.GetModell(id))); }
public ActionResult Hcombo(int?id) { return(View(ActionDemoModel.GetModell(id ?? 1))); }
public ActionResult Hlist() { return(View(ActionDemoModel.GetModell(1))); }