Example #1
0
        public ActionResult _Index(string tabId, int parentId, GridCommand command)
        {
            var serviceResult = ArticleVersionService.List(parentId, command.GetListCommand());
            var result        = Mapper.Map <List <ArticleVersion>, List <ArticleVersionListItem> >(serviceResult);

            return(new TelerikResult(result, result.Count));
        }
        public ActionResult _Index(
            string tabId,
            int parentId,
            int page,
            int pageSize,
            string orderBy)
        {
            var listCommand   = GetListCommand(page, pageSize, orderBy);
            var serviceResult = ArticleVersionService.List(parentId, listCommand);
            var result        = Mapper.Map <List <ArticleVersion>, List <ArticleVersionListItem> >(serviceResult);

            return(new TelerikResult(result, result.Count));
        }