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 SV findByID(int id) { SVDAL svDAL = new SVDAL(); return(svDAL.findByID(id)); }