コード例 #1
0
 public ActionResult <IEnumerable <Player> > Get()
 {
     try
     {
         return(Ok(_ps.Get()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
コード例 #2
0
 public ActionResult <List <PlayersDocument> > GetPlayers()
 {
     return(Ok(_playersService.Get()));
 }