public static async Task <T> Get <T>(string url, string path, object parametro) where T : class { var gatewayRest = new GatewayRestAPI <T>(url, path); var retorno = await gatewayRest.GetSingle(parametro); return(retorno); }
public CadastroController(AppConfiguracoes appConfiguracoes, IMapper mapper) { _appConfiguracoes = appConfiguracoes; gatewayAPI = new GatewayRestAPI <TemplateViewModel>(appConfiguracoes.ApiTemplate, appConfiguracoes.PathCadastro); _mapper = mapper; }