public ActionResult AddAdmin(AdminDetail _pmodel) { AdminManageDetail _newuser = new AdminManageDetail() { UserName = _pmodel.UserName, Password = _pmodel.Password, ADOB = _pmodel.ADOB, Email = _pmodel.Email }; string msg = AdminManage.AddAdmininDB(_newuser); if (msg == "Success") { return(RedirectToAction("Index", "Patient")); } else { return(View(_pmodel)); } }