// GET: UCRMS public async Task <ActionResult> IndexStudentResult() { VM_StudentResult result = new VM_StudentResult(); await Task.Run(() => result.GetResultList()); return(View(result)); }
// GET: UCRMS/Delete/5 public ActionResult DeleteStudentResult(int?id) { VM_StudentResult sr = new VM_StudentResult(); ViewBag.SR = sr.GetResult(id); if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } StudentResult studentResult = db.StudentsResults.Find(id); if (studentResult == null) { return(HttpNotFound()); } return(View(studentResult)); }