Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public IActionResult Edit(string id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            Student student = objstudent.GetStudentData(id);

            if (student == null)
            {
                return(NotFound());
            }
            return(View(student));
        }
Esempio n. 3
0
 // 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));
 }
Esempio n. 6
0
 public Student Details(int id)
 {
     return(objStudent.GetStudentData(id));
 }