// GET: HoatDongSinhVienDangKi public ActionResult DanhSachHoatDongDangKi(string masv) { ViewBag.User = Session["USER_SESSION"]; HoatDongSinhVienDangKiDAL hd = new HoatDongSinhVienDangKiDAL(); return(View(hd.HoatDongSinhVien(ViewBag.User.MaSinhVien))); }
//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))); }
// GET: HoatDongSinhVienDangKi/Details/5 public ActionResult ThongTinHoatDong(int maHD) { HoatDongSinhVienDangKiDAL hd = new HoatDongSinhVienDangKiDAL(); return(View(hd.ThongTinHoatDong(maHD))); }