Exemplo n.º 1
0
 public ActionResult <List <GhRepositoryDto> > ReadRepositoriesByUserId([Required] int userId)
 {
     return(userId switch
     {
         _ when userId < 0 => BadRequest(RecademyException.InvalidArgument(nameof(userId), userId)),
         _ => Ok(_githubService.GhGetRepositories(userId))
     });