public async Task <IActionResult> EditLeague(int leagueId, EditLeagueBindingModel model) { var result = await _leagueService.EditLeagueAsync(leagueId, model); if (result.ErrorOccurred) { return(BadRequest(result)); } return(Ok(result)); }
public async Task <IActionResult> EditLeague(int leagueId, EditLeagueBindingModel model) { var result = await _leagueService.EditLeagueAsync(leagueId, model); if (result.ErrorOccurred) { return(BadRequest(result)); } return(Ok(result)); }