Exemplo n.º 1
0
 public ActionResult <IEnumerable <WikiCategory> > Get()
 {
     try
     {
         return(Ok(repository.GetAllWikiCategories()));
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
         return(BadRequest("Failed to get categories"));
     }
 }