public Lookups Get()
 {
     try
     {
         return(repository.GetLookups());
     }
     catch (UnauthorizedAccessException)
     {
         throw new HttpResponseException(HttpStatusCode.Unauthorized);
     }
     catch (Exception)
     {
         throw new HttpResponseException(HttpStatusCode.InternalServerError);
     }
 }
Exemplo n.º 2
0
 public IActionResult Lookups([FromServices] ILookupsRepository repository)
 {
     return(Ok(repository.GetLookups()));
 }
 public Lookups Get()
 {
     return(repository.GetLookups());
 }