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