public List <Product_DataModel> GetProductListByCategoryId(int CategoryId) { List <Product_DataModel> lst_ProductPriceSKU = new List <Product_DataModel>(); List <KeyValuePair <string, string> > getByID_Parameters = new List <KeyValuePair <string, string> >(); getByID_Parameters.Add(new KeyValuePair <string, string>("@CategoryId", Convert.ToString(CategoryId))); return(lst_ProductPriceSKU = JsonConvert.DeserializeObject <List <Product_DataModel> >(Product_DAL.GetProductListByCategoryId(getByID_Parameters))); }