public async Task <ActionResult <EstabelecimentoResource> > GetEstabelecimentoById(int id) { var estabelecimento = await _estabelecimentoService.GetEstabelecimentoById(id); var estabelecimentoResource = _mapper.Map <Estabelecimento, EstabelecimentoResource>(estabelecimento); return(Ok(estabelecimentoResource)); }