Example #1
0
 public IHttpActionResult Select()
 {
     try
     {
         var values = service.Select()
                      .ToList();
         return(Ok(values));
     }
     catch (UnauthorizedAccessException)
     {
         return(StatusCode(HttpStatusCode.Forbidden));
     }
 }