public async Task <IActionResult> BuscarPorID(int codigo) { try { Empresas newEmpresa = await _service.BuscarPorID(codigo); return(Ok(newEmpresa)); } catch (Exception ex) { return(UnprocessableEntity(new { ex.Message, Status = 422 })); } }