Exemplo n.º 1
0
 public IActionResult GetArticles()
 {
     try
     {
         var articles = _article.GetArticles();
         return(Ok(articles));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }