public JsonResult DeleteAluno(long ID) { Aluno labUpdate = AlunoDao.FindAllByIDAluno(ID); AlunoDao.Delete(labUpdate); return(Json("Response from Delete")); }
public ActionResult Edit(int IdAluno) { Aluno aluno = AlunoDao.FindAllByIDAluno(IdAluno); ViewBag.ID = IdAluno; ViewBag.erros = new List <string>(); return(View(new AlunoDTO(aluno))); }