Пример #1
0
 public ActionResult EditSheekerProfile(int id, Sheekerprofile smodel)
 {
     try
     {
         ManageSheeker sdb = new ManageSheeker();
         sdb.UpdateSheekerProfile(smodel);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Пример #2
0
        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());
        }