//public ActionResult downloadfile(int a) //{ // var getimage = studentservice.getbyid(a); // Student student = new Student(); // var stgimg = student.Admissionimage; // string path = Server.MapPath("~stgimg"); // return View(); //} public ActionResult EditStudent(int id) { Studentservice service = new Studentservice(); var Student = service.getbyid(id); TempData["imgpath"] = Student.Admissionimage; return(View(Student)); }
//download file code public ActionResult imagedetails(int id) { Student s = studentservice.getbyid(id); return(View(s)); }