public string GetAllCategoryProducts_Quantity(int CustomerId ,int CategoryId) { List<GetAllCategoryProducts_Quantity_Result> obj = new List<GetAllCategoryProducts_Quantity_Result>(); using (var entities = new SedapExpressEntities()) { obj = entities.GetAllCategoryProducts_Quantity(CustomerId, CategoryId).ToList<GetAllCategoryProducts_Quantity_Result>(); } return JsonConvert.SerializeObject(obj); }