Ejemplo n.º 1
0
        //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));
        }
Ejemplo n.º 2
0
        //download file code

        public ActionResult imagedetails(int id)
        {
            Student s = studentservice.getbyid(id);

            return(View(s));
        }