public List <T> FindAll(string path, List <T> objects) { //_converterJson.Convert(path, objects); //return (List<T>)_converterJson.ConvertJsonToPlayers(_restClient.DoGet(path)); return((List <T>)_converterJson.ConvertJsonToPlayers(_restClient.DoGet(path))); }
/*public PlayerDao(RestClient restClient, ConverterJson converterJson) * { * _restClient = restClient; * _converterJson = converterJson; * }*/ public List <Player> GetAll() { return(new List <Player>(_converterJson.ConvertJsonToPlayers(_restClient.DoGet("player")))); }