Beispiel #1
0
        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));
        }