public int Xoa(string msNhom) { NhomLinhVucModel nlv = new NhomLinhVucModel(); nlv.MSNHOMLINHVUC = int.Parse(msNhom); return(nlv.Xoa()); }
public int Them(string tenNhom) { NhomLinhVucModel nlv = new NhomLinhVucModel(); nlv.TENNHOMLINHVUC = tenNhom; return(nlv.Them()); }
// GET: Admin/DuTru public ActionResult Index() { var magiangvien = ((TaiKhoanDangNhapModel)Session[Contains.SESSIONKEYDANGNHAP]).MSGIANGVIEN; ViewData["DSLopHocPhan"] = new DuTruVatTuModel().DanhSachLopHocPhanTheoGiangVien(magiangvien); ViewData["DSNhomLinhVuc"] = new NhomLinhVucModel().DanhSach(); return(View()); }
public int CapNhat(string msNhom, string tenNhom) { NhomLinhVucModel nlv = new NhomLinhVucModel(); nlv.MSNHOMLINHVUC = int.Parse(msNhom); nlv.TENNHOMLINHVUC = tenNhom; return(nlv.CapNhat()); }
// GET: Admin/VatTuPhong public ActionResult Index() { PhongModel phong = new PhongModel(); phong.MSGIANGVIEN = ((TaiKhoanDangNhapModel)Session[Contains.SESSIONKEYDANGNHAP]).MSGIANGVIEN; ViewData["DSPhong"] = phong.DanhSachPhongTheoGiangVien(); ViewData["DSNhomLinhVuc"] = new NhomLinhVucModel().DanhSach(); return(View()); }
// GET: Admin/VatTu public ActionResult Index() { ViewData["DSNhomLinhVuc"] = new NhomLinhVucModel().DanhSach(); return(View()); }