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