Пример #1
0
 public IActionResult Get()
 {
     try
     {
         var articles = _article.GetAll();
         return(Ok(articles));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }