public StudentViewModel getStudentViewModelByID(int id) { SVDAL svDAL = new SVDAL(); StudentViewModel model = new StudentViewModel(); SV sv = svDAL.findByID(id); if (sv == null) { return(null); } model.TenSV = sv.TenSV; model.GioiTinh = sv.GioiTinh; model.HoKhau = sv.HoKhau; model.MSSV = sv.MSSV; model.NgaySinh = sv.NgaySinh; model.QueQuan = sv.QueQuan; model.DiemTB = sv.DiemTB; model.MaKhoa = sv.MaKhoa; return(model); }
public StudentViewModel coverSVToStudentViewModel(SV sv) { SVDAL svDAL = new SVDAL(); KhoaBLL khoaBLL = new KhoaBLL(); StudentViewModel model = new StudentViewModel(); if (sv == null) { return(null); } model.TenSV = sv.TenSV; model.GioiTinh = sv.GioiTinh; model.HoKhau = sv.HoKhau; model.MSSV = sv.MSSV; model.NgaySinh = sv.NgaySinh; model.QueQuan = sv.QueQuan; model.DiemTB = sv.DiemTB; model.TenKhoa = sv.Khoa.Ten; return(model); }
public void remove(SV sv) { SVDAL svDAL = new SVDAL(); svDAL.remove(sv); }
public void update(SV sv) { SVDAL svDAL = new SVDAL(); svDAL.update(sv); }
public void create(SV sv) { SVDAL svDAL = new SVDAL(); svDAL.create(sv); }
public List <SV> findByName(string name) { SVDAL svDAL = new SVDAL(); return(svDAL.findByName(name)); }
public List <StudentViewModel> getDataGridViewModel() { SVDAL svDAL = new SVDAL(); return(svDAL.getDataGridViewModel()); }
public List <SV> getAll() { SVDAL svDAL = new SVDAL(); return(svDAL.getALL()); }
public SV findByID(int id) { SVDAL svDAL = new SVDAL(); return(svDAL.findByID(id)); }