Exemplo n.º 1
0
        /// <summary>
        /// SearchUserVinhDemo
        /// </summary>
        /// <param name="textSearch"></param>
        /// <param name="currentPage"></param>
        /// <param name="recordPerPage"></param>
        /// <returns></returns>
        public object SearchUserVinhDemo(string textSearch, int currentPage, int recordPerPage)
        {
            List <List <dynamic> > obj             = orgSP.SearchUserVinhDemo(textSearch, currentPage, recordPerPage);
            List <UserVinhDemoVM>  lstuserVinhDemo = obj[0].OfType <UserVinhDemoVM>().ToList();
            PagePaging             pagePaging      = obj[1].OfType <PagePaging>().FirstOrDefault();

            return(new { data = lstuserVinhDemo, pagePaging = pagePaging });
        }
Exemplo n.º 2
0
        /// <summary>
        /// SearchCategory theo CategoryCode
        /// </summary>
        /// <param name="textSeach"></param>
        /// <param name="currentPage"></param>
        /// <param name="recordPerPage"></param>
        /// <returns></returns>
        public object SearchCategory(string textSearch, int currentPage, int recordPerPage)
        {
            List <List <dynamic> > obj         = orgSP.SearchCategory(textSearch, currentPage, recordPerPage);
            List <CategoryVM>      lstCategory = obj[0].OfType <CategoryVM>().ToList();
            PagePaging             pagePaging  = obj[1].OfType <PagePaging>().FirstOrDefault();

            return(new { data = lstCategory, pagePaging = pagePaging });
        }