Esempio n. 1
0
 public ActionResult <IEnumerable <Attack> > GetAllAttacks()
 {
     try
     {
         return(Ok(_pokemonRepository.GetAllAttacks()));
     }
     catch (Exception ex)
     {
         return(BadRequest("Failed to get all pokemons stats"));
     }
 }