Example #1
0
        /// <summary>
        /// 操作规则列表数据源
        /// </summary>
        /// <returns></returns>
        public async Task <ActionResult> ActionGrid_Read(string ID)
        {
            List <MenuAction> lma = await MenuActionRepository.FindAllAsync();

            if (!string.IsNullOrEmpty(ID))
            {
                int intId = Convert.ToInt32(ID);
                lma = lma.Where(a => a.MenuID == intId).ToList();
            }
            return(Json(lma));
        }