public IHttpActionResult Get(int?id) { if (id == null) { return(BadRequest()); } StadiumService service = CreateStadiumService(); return(Ok(service.GetStadiumByID(id.Value))); }