Exemplo n.º 1
0
        public String AllSearchedProduct(string ProductName, int PageSize, int PageNumber, int?CustomerId)
        {
            List <GetAllSearchedProducts_Result> obj = new List <GetAllSearchedProducts_Result>();


            using (var entities = new SedapExpressEntities())
            {
                obj = entities.GetAllSearchedProducts(ProductName, PageSize, PageNumber, CustomerId).ToList <GetAllSearchedProducts_Result>();
            }

            return(JsonConvert.SerializeObject(obj));
        }