private Task <IEnumerable <CusLink> > GetItemsAsync(int size)
        {
            var list = _cusLinkService.GetTopCusLink(size, "id,title,url,linktype");

            return(Task <IEnumerable <CusLink> > .Factory.StartNew(() => { return list; }));
        }
Exemple #2
0
        public JsonResult GetTopCusLink(int size)
        {
            var list = _cusLinkService.GetTopCusLink(size, "*");

            return(Json(list));
        }