Пример #1
0
        public ActionResult <Cliente> Get(int id)
        {
            var cliente = business.ObterPorId(id);

            if (cliente == null)
            {
                return(NotFound());
            }
            return(cliente);
        }
Пример #2
0
        public ActionResult <Exercicio> Get(int id)
        {
            var exercicio = business.ObterPorId(id);

            if (exercicio == null)
            {
                return(NotFound());
            }
            return(exercicio);
        }
Пример #3
0
        public ActionResult <SerieFicha> Get(int id)
        {
            var serie = business.ObterPorId(id);

            if (serie == null)
            {
                return(NotFound());
            }

            return(serie);
        }
Пример #4
0
        public ActionResult <Professor> Get(int id)
        {
            var professor = business.ObterPorId(id);

            if (professor == null)
            {
                return(NotFound());
            }

            return(professor);
        }