// GET: ThongTinCaNhanSinhVien
        public ActionResult ThongTinCaNhanSinhVien(string masv)
        {
            ThongTinSinhVienDAL sv = new ThongTinSinhVienDAL();

            ModelState.Clear();
            var model = Session["USER_SESSION"];

            ViewBag.USer = model;
            return(View(sv.ThongTinSinhVien(ViewBag.User.MaSinhVien)));
        }
        public ActionResult CapNhatThongTinSinhVien(SinhVienModel sinhvien)
        {
            if (string.IsNullOrEmpty(sinhvien.Hinh))
            {
                sinhvien.Hinh = "s";
            }
            ThongTinSinhVienDAL sv = new ThongTinSinhVienDAL();

            try
            {
                sv.CapNhatThongTin(sinhvien);
                ViewBag.Message = "Cập Nhật Thành Công";
            }catch (Exception ex)
            {
                ViewBag.Message = string.Format(ex.Message);
            }
            ThongTinSinhVienDAL tt = new ThongTinSinhVienDAL();

            ModelState.Clear();
            var model = Session["USER_SESSION"];

            ViewBag.User = model;
            return(View("ThongTinCaNhanSinhVien", tt.ThongTinSinhVien(ViewBag.User.MaSinhVien)));
        }