public ActionResult RegisterAdmin(Admin admin) { if (ModelState.IsValid) { bool insertOK = _adminBLL.addAdmin(admin); if (insertOK) { return(RedirectToAction("ListAdmins")); } } ViewBag.Message = "Some mistake occured or admin with such name already exists!"; return(View()); }