using PokemonSleepWeb.Client.Service.IService; using PokemonSleepWeb.Client.Utility; using PokemonSleepWeb.Client.Models; namespace PokemonSleepWeb.Client.Service { public class PokemonService : IPokemonService { private readonly IBaseService _baseService; public PokemonService(IBaseService baseService) { _baseService = baseService; } public async Task GetAllPokemonAsync() { return await _baseService.SendAsync(new RequestDto() { ApiType = StaticDetails.ApiType.GET, Url = StaticDetails.PokemonSleepAPIBase + "/api/pokemon" }); } } }