示例#1
0
        public IHttpActionResult Put(StadiumEdit model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            StadiumService service = CreateStadiumService();

            if (service.UpdateExistingStadium(model))
            {
                return(Ok());
            }

            return(InternalServerError());
        }