public IHttpActionResult Post(CreateNewPlayer player) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var service = CreatePlayerService(); if (!service.CreatePlayer(player)) { return(InternalServerError()); } return(Ok()); }