예제 #1
0
        public ResponseInfoModel Frontlist(int ParentID)
        {
            ResponseInfoModel json = new ResponseInfoModel()
            {
                Success = 1, Result = new object()
            };

            try
            {
                var outputList = _articleCategoryService.FrontlistByParent(ParentID);
                json.Result = new ListInfo()
                {
                    List = outputList
                };;
            }
            catch (Exception e)
            {
                DisposeUserFriendlyException(e, ref json, "api/category/Frontlist", LocalizationConst.QueryFail);
            }
            return(json);
        }