Exemplo n.º 1
0
        public String GetAllCategoryProducts(string CategoryId, string PageSize, string PageNumber)
        {
            List <GetAllCategoryProducts_Result> obj = new List <GetAllCategoryProducts_Result>();


            using (var entities = new SedapExpressEntities())
            {
                obj = entities.GetAllCategoryProducts(Convert.ToInt32(CategoryId), Convert.ToInt32(PageSize), Convert.ToInt32(PageNumber)).ToList <GetAllCategoryProducts_Result>();
            }
            return(JsonConvert.SerializeObject(obj));
        }