示例#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);
        }