Esempio n. 1
0
 public ActionResult Create(TaiKhoan collection)
 {
     try
     {
         // TODO: Add insert logic here
         if (ModelState.IsValid)
         {
             ac.Insert(collection);
             return(RedirectToAction("Index", "Account"));
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }