public ViewResult Register(RegisterViewModel model) { if (ModelState.IsValid) { Account acc = db.IsExists(model.Email); if (acc == null) { Account account = db.AddAccount(model.Name, model.Email, model.Password); User("Hi " + account.Name); return(View("User")); } else { User("This Email is already registered"); return(View("User")); } } return(View()); }