コード例 #1
0
        public ActionResult Edit(int id)
        {
            StudentDAL   dal   = new StudentDAL();
            StudentModel model = dal.Find(id);

            return(View(model));
        }
コード例 #2
0
        public ActionResult GetProfileDetails()
        {
            int          loginid = Convert.ToInt32(Session["loginid"]);
            StudentDAL   dal     = new StudentDAL();
            StudentModel model   = dal.Find(loginid);

            ViewBag.id         = model.StudentID;
            ViewBag.name       = model.StudentName;
            ViewBag.imgaddress = model.StudentImageAddress;
            return(PartialView("myprofilepartialview"));
        }