Exemple #1
0
        // GET: HoatDongSinhVienDangKi
        public ActionResult DanhSachHoatDongDangKi(string masv)
        {
            ViewBag.User = Session["USER_SESSION"];
            HoatDongSinhVienDangKiDAL hd = new HoatDongSinhVienDangKiDAL();

            return(View(hd.HoatDongSinhVien(ViewBag.User.MaSinhVien)));
        }
Exemple #2
0
        //GET: HoatDongSinhVienDangKi/Delete/5
        public ActionResult DeleteHoatDong(string masv, int mahd)
        {
            try
            {
                HoatDongSinhVienDangKiDAL hd = new HoatDongSinhVienDangKiDAL();
                hd.XoaHoatDongDangky(masv, mahd);
                ViewBag.ErrorMessage = "Xóa Thành Công!";
            }
            catch (Exception e)
            {
                ViewBag.ErrorMessage = string.Format(e.Message);
            }
            HoatDongSinhVienDangKiDAL sv = new HoatDongSinhVienDangKiDAL();

            return(View("DanhSachHoatDongDangKi", sv.HoatDongSinhVien(masv)));
        }
Exemple #3
0
        // GET: HoatDongSinhVienDangKi/Details/5
        public ActionResult ThongTinHoatDong(int maHD)
        {
            HoatDongSinhVienDangKiDAL hd = new HoatDongSinhVienDangKiDAL();

            return(View(hd.ThongTinHoatDong(maHD)));
        }