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