public static void editDiemHocTap(string maSinhVien, double diem1, double diem2) { var db = new QuanLySV.DAL.SinhVienDbContext(); var diemHocTap = db.DiemHocTapDbset.Where(e => e.MaSinhVien == maSinhVien).ToList(); diemHocTap.ElementAt(0).Diem = diem1; diemHocTap.ElementAt(1).Diem = diem2; db.SaveChanges(); }
public static List <DiemHocTap> getDiemHocTap(string maSinhVien) { List <DiemHocTap> temp = new QuanLySV.DAL.SinhVienDbContext().DiemHocTapDbset.Where(e => e.MaSinhVien == maSinhVien).ToList(); return(temp); }