Ejemplo n.º 1
0
        public ActionResult Excluir(int id)
        {
            var result = false;

            try
            {
                var aluno = _repoAluno.Listar().Where(m => m.Id == id).SingleOrDefault();
                aluno.DtExclusao = DateTime.Now;
                _repoAluno.Excluir(aluno);
                result = true;
                //InserirLog("ALUNO", "DELETE", aluno.CpfAluno, 0, aluno.Id, 0, 0);
            }
            catch (Exception ex)
            {
                var msgErro = ex.Message;
                //InserirLog("ALUNO", "Erro Excluir registro | Message :" + ex.Message);
            }
            return(Json(new { Resultado = result }, JsonRequestBehavior.AllowGet));
        }