public async Task UpdateTeamStadium() { var payload = new TeamStadiumUpdateModel { UserId = 1, OldStadiumId = 1, NewStadiumId = 2, TeamId = 1 }; var response = await _client.PutAsync($"api/v1/RugbyManager/UpdateTeamStadium", new StringContent(JsonSerializer.Serialize(payload), Encoding.UTF8, "application/json")); response.StatusCode.Should().Be(System.Net.HttpStatusCode.OK); }
public async Task <ActionResult> UpdateTeamStadiumAsync([FromBody] TeamStadiumUpdateModel teamStadiumUpdate) { try { //Todo return(Ok()); } catch (Exception ex) { _logger.LogError(ex, $"Error updating team stadium with message: {ex.Message}"); return(BadRequest(ex.Message)); } }
public async Task UpdateTeamStadiumAsync(TeamStadiumUpdateModel teamStadiumUpdate) { throw new NotImplementedException(); }