public IActionResult GetById(int id) { var item = _repositorio.Find(id); if (item == null) { return(NotFound()); } return(new ObjectResult(item)); }
public IActionResult GetById(long id) { var quarto = _quartoRepositorio.Find(id); if (quarto == null) { return(NotFound()); } return(new ObjectResult(quarto)); }