public ActionResult Create(UsersViewModel userViewModel) { try { BusinessObject.Users user = new BusinessObject.Users(); user.Name = userViewModel.Name; user.Email = userViewModel.Email; user.Password = userViewModel.Password; UserLogic userLogic = new UserLogic(); userLogic.AddUsers(user); return(RedirectToAction("Index")); } catch { return(View()); } }