public ActionResult Create(FormCollection collection) { try { domain.User user = new domain.User(); user.CreatedDate = DateTime.Now; user.Name = collection.Get("Name"); user.Password = collection.Get("Password").ToLower(); user.Email = collection.Get("Email").ToLower(); appUser.Add(user); return(RedirectToAction("Index")); } catch { return(View()); } }