Beispiel #1
0
 public ActionResult <Hero> Get()
 {
     try
     {
         return(Ok(_service.GetAll()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }