예제 #1
0
 public ActionResult <IEnumerable <Article> > Get()
 {
     try
     {
         return(Ok(repository.GetAllArticles()));
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
         return(BadRequest("Failed to get articles"));
     }
 }