public ActionResult ChangeRole(string UserId, UserModel model) { if (ModelState.IsValid) { var info = DBBridge.EditRole(UserId, model.Role); if (info == 1) { ViewBag.Message = "The user role is changed successfully!"; } else { ViewBag.Message = "The user role cannot be changed!"; } } return(View()); }