public IHttpActionResult Put(StadiumEdit model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } StadiumService service = CreateStadiumService(); if (service.UpdateExistingStadium(model)) { return(Ok()); } return(InternalServerError()); }