Exemple #1
0
        public IActionResult GetById(int id)
        {
            var item = _repositorio.Find(id);

            if (item == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(item));
        }
Exemple #2
0
        public IActionResult GetById(long id)
        {
            var quarto = _quartoRepositorio.Find(id);

            if (quarto == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(quarto));
        }