public IActionResult Get(Guid id) { var tournament = _application.GetTournament(id); if (tournament == null) { return(HttpNotFound(id)); } return(Ok(tournament)); }
public IActionResult Get(Guid id) { var tournament = _application.GetTournament(id); if (tournament == null) { return(NotFound(id)); } var serviceTournament = _translator.TranslateToService(tournament); return(Ok(serviceTournament)); }