コード例 #1
0
        public IHttpActionResult Post(StadiumCreate model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            StadiumService service = CreateStadiumService();

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

            return(InternalServerError());
        }