public IActionResult List() { try { string funcId = PermissionEnum.CodeFormat((int)PermissionEnum.内容管理.区块管理.列表); if (!IsPermission(funcId)) { return(ToPermission(funcId)); } List <Info_Block> lists = BlockService.GetBlockAll(SystemID, CompanyID, ""); ViewBag.Count = lists.Count(); return(View(lists)); } catch (Exception ex) { return(ToError(ex.Message)); } }