public string DeleteProductFromCart(int?CustomerId, int ProductId) { int result; List <int> obj = new List <int>(); using (var entities = new SedapExpressEntities()) { result = entities.DeleteProductFromCart(CustomerId, ProductId); } return(JsonConvert.SerializeObject(result)); }