public HttpResponseMessage Put(int id, [FromBody] TblProduct value)
 {
     ProductsDB.Entry(value).State = EntityState.Modified;
     return(ToJson(ProductsDB.SaveChanges()));
 }
 public HttpResponseMessage Delete(int id)
 {
     ProductsDB.TblProducts.Remove(ProductsDB.TblProducts.FirstOrDefault(x => x.ProductId == id));
     return(ToJson(ProductsDB.SaveChanges()));
 }
 public HttpResponseMessage Post([FromBody] TblProduct value)
 {
     ProductsDB.TblProducts.Add(value);
     return(ToJson(ProductsDB.SaveChanges()));
 }