Example #1
0
 public ActionResult Create(RegistrationModel model)
 {
     try
     {
         int IDUser = model.CreateUserData();
         if (IDUser > 0)
         {
             Session[Constants.UserID] = IDUser;
             return(RedirectToAction("ShowUser", new { id = IDUser }));
         }
     }
     catch
     {
     }
     return(View());
 }