Example #1
0
        public JsonResult GravarMateria(Materia materia)
        {
            string resposta = Util.Resultado.Ok.ToString();

            using (IConnection Conexao = new Connection())
            {
                Conexao.Abrir();
                IDAO <Materia> materiaDAO = new MateriaDAO(Conexao);

                materiaDAO.inserir(materia);
            }

            return(Json(resposta));
        }