public ActionResult Edit(int?id) { if (id == null) { return(new HttpNotFoundResult("Not Found")); } Student student = objstudent.GetStudentData(id); if (student == null) { return(new HttpNotFoundResult("Not Found")); } return(View(student)); }
public IActionResult Edit(string id) { if (id == null) { return(NotFound()); } Student student = objstudent.GetStudentData(id); if (student == null) { return(NotFound()); } return(View(student)); }
// GET: Student/Details/5 public IActionResult Details(int id) { return(View(studentDataAccessLayer.GetStudentData(id))); }
// GET: Student/Details/5 public ActionResult Details(int id) { Student student = studentDataAccessLayer.GetStudentData(id); return(View(student)); }
public Student Get(int id) { return(sdal.GetStudentData(id)); }
public Student Details(int id) { return(objStudent.GetStudentData(id)); }