public IHttpActionResult PutBeer(int id, Beer beer) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = _context.Put(id, beer); if (result == false) { return(NotFound()); } return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult PutBeer(int id, Beer beer) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = _context.Put(id, beer); if (result == false) { return(NotFound()); } return(StatusCode(HttpStatusCode.NoContent)); }