示例#1
0
        public JsonResult GetByMenuId(int menuId, int entityId)
        {
            var genericControlValueItem = _genericControlValueItemService.GetByOption(menuId, entityId);

            var jsonResult = Json(
                new
            {
                success = genericControlValueItem.IsAny(),
                list    = this.RenderRazorViewToString("_CreateOrUpdate.GenericControlValue", genericControlValueItem)
            },
                JsonRequestBehavior.AllowGet);

            return(jsonResult);
        }
示例#2
0
        public JsonResult GetByMenuId(int menuId, int entityId)
        {
            IEnumerable <GenericControlValueItem> genericControlValueItem = null;

            genericControlValueItem = _genericControlValueItemService.GetByOption(genericControlValueId: menuId, entity: entityId);

            if (genericControlValueItem.IsAny())
            {
            }

            JsonResult jsonResult = Json(
                new
            {
                success = genericControlValueItem.Count() > 0,
                list    = this.RenderRazorViewToString("_CreateOrUpdate.GenericControlValue", genericControlValueItem)
            },
                JsonRequestBehavior.AllowGet);

            return(jsonResult);
        }