public Object GetPlayer(string playerid) { Player player = new Player(playerid); PlayerInfoService service = new PlayerInfoService(); try { service.Get(player); } catch (Exception e) { return(e); } return(player); }
public Object GetByPosition(string position) { PlayerInfoLog players = new PlayerInfoLog(); PlayerInfoService service = new PlayerInfoService(); try { service.Get(players, position); } catch (Exception e) { return(e); } return(players); }
public Object GetAll() { PlayerInfoLog players = new PlayerInfoLog(); PlayerInfoService service = new PlayerInfoService(); try { service.Get(players); } catch (Exception e) { return(e); } return(players); }