public ActionResult Register(User user) { if (UserContext.Check(user) > 0) { return(View()); } if (UserContext.Create(user) < 1) { return(View()); } Session.Add(Common.USER_SESSION, user); return(RedirectToAction("Index", "InfoUser")); }
public ActionResult Register(User user) { if (UserContext.Check(user) > 0) { return(View()); } if (UserContext.Create(user) < 1) { return(View()); } Session.Add(Common.USER_SESSION, user); return(RedirectToAction("Index", "InfoUser")); }