In the student environment, it should change your password.
I created the code below but I can not get results in the database. Does anyone notice anything wrong?
[HttpPost]
public ActionResult AlterarSenha(CONSUL_CA_Aluno aluno)
{
string cpf = System.Web.HttpContext.Current.User.Identity.Name;
var bdAluno = CONSUL_CA_AlunoAplicacaoConstrutor.CONSUL_CA_AlunoAplicacaoEF();
var alunoNovaSenha = bdAluno.ListarTodos().Where(x => x.Cpf == cpf).First();
ViewData["aluno"] = aluno;
ViewBag.Senha = aluno.Senha;
bdAluno.Salvar(alunoNovaSenha);
return View();
}