public ActionResult EditSheekerProfile(int id, Sheekerprofile smodel) { try { ManageSheeker sdb = new ManageSheeker(); sdb.UpdateSheekerProfile(smodel); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult CreateProfile1(Sheekerprofile regi, string ReturnUrl = "") { if (ModelState.IsValid) { ManageSheeker jm = new ManageSheeker(); if (jm.SheekerProfile(regi)) { ViewBag.Message = "You Have Done Create Profile"; ModelState.Clear(); if (Url.IsLocalUrl(ReturnUrl)) { return(Redirect(ReturnUrl)); } else { return(RedirectToAction("Index", "Sheeker")); } } } return(View()); }