Exemplo n.º 1
0
 public async Task <ActionResult <IEnumerable <UniversityModel> > > Get([FromQuery] UniversityFilter filter)
 {
     _logger.LogInformation("Call end-point all universities");
     if (filter.Active)
     {
         return(Ok(await _universityService.GetAllByFilterAsync(filter)));
     }
     else
     {
         return(Ok(await _universityService.GetAllAsync()));
     }
 }