public ActionResult Modules(int userID) { CheckReturn check = UserInfoServices .LoadModules(userID); if (check.Flag) { ViewBag.Html = LoadHtml.GetElements(check.dics, check.IDs); return(PartialView()); } else { return(Json(new { State = 0, Message = check.Message })); } }