public async Task <ResponseAutorGet> Get(int id) { ResponseAutorGet result = new ResponseAutorGet(); var retorno = await AutorService.Obter(id); result.Autores.Add(retorno); return(result); }
public async Task <ResponseAutorGet> Get() { ResponseAutorGet result = new ResponseAutorGet(); var retorno = await AutorService.Obter(); result.Autores = retorno.ToList(); return(result); }