public HocKy Update(HocKy hocky) { var exting = hocKyrepository.GetById(hocky.Hockyid); if (exting != null) { exting.tenHocKy = hocky.tenHocKy; hocKyrepository.Update(exting); } return(null); }
public MonHoc Update(MonHoc monhoc) { var exting = monHocrepository.GetById(monhoc.MonhocId); if (exting != null) { exting.TenMonHoc = monhoc.TenMonHoc; exting.Sotinchi = monhoc.Sotinchi; monHocrepository.Update(exting); } return(null); }
public KhoaHoc Update(KhoaHoc khoahoc) { var exsting = khoaHocRepository.GetById(khoahoc.KhoaHocID); if (exsting != null) { exsting.TCTThieu = khoahoc.TCTThieu; exsting.TCTDa = khoahoc.TCTDa; khoaHocRepository.Update(exsting); } return(null); }
public KetQuaHocTap Update(KetQuaHocTap kqht) { var exting = ketquahoctaprepository.GetById(kqht.KetQuaHocTapId); if (exting != null) { exting.LoaiDiem = kqht.LoaiDiem; exting.SinhVienId = kqht.SinhVienId; exting.LopHocPhanId = kqht.LopHocPhanId; ketquahoctaprepository.Update(exting); } return(null); }
public KetQuaHocTap Update(KetQuaHocTap kqht) { var exting = ketquahoctaprepository.GetById(kqht.kqhtID); if (exting != null) { exting.ThuongKy = kqht.ThuongKy; exting.GiuaKy = kqht.GiuaKy; exting.CuoiKy = kqht.CuoiKy; exting.LopHocPhanId = kqht.LopHocPhanId; exting.SinhVienId = kqht.SinhVienId; ketquahoctaprepository.Update(exting); } return(null); }
public LopHocPhan Update(LopHocPhan lophocphan) { var existing = lopHocPhanrepository.GetById(lophocphan.LopHocPhanId); if (existing != null) { existing.tenLopHocPhan = lophocphan.tenLopHocPhan; existing.MonHocId = lophocphan.MonHocId; existing.soLuong = lophocphan.soLuong; existing.GiangVienid = lophocphan.GiangVienid; existing.Hockyid = lophocphan.Hockyid; lopHocPhanrepository.Update(existing); } return(null); }
public GiangVien Update(GiangVien gv) { var exting = giangVienrepository.GetById(gv.GiangVienid); if (exting != null) { exting.TenGiangVien = gv.TenGiangVien; exting.Gioitinh = gv.Gioitinh; exting.Ngaysinh = gv.Ngaysinh; exting.Diachi = gv.Diachi; exting.Email = gv.Email; exting.ChuyenNganh = gv.ChuyenNganh; giangVienrepository.Update(exting); } return(null); }
public SinhVien updatate(SinhVien sinhvien) { var existing = sinhVienRepository.GetById(sinhvien.SinhVienId); if (existing != null) { existing.tenSinhVien = sinhvien.tenSinhVien; existing.Gioitinh = sinhvien.Gioitinh; existing.Ngaysinh = sinhvien.Ngaysinh; existing.Diachi = sinhvien.Diachi; existing.ChuyenNganh = sinhvien.ChuyenNganh; existing.BacDT = sinhvien.BacDT; existing.soDienThoai = sinhvien.soDienThoai; existing.KhoaHocID = sinhvien.KhoaHocID; sinhVienRepository.Update(existing); } return(null); }
public LopHocPhan Update(LopHocPhan lophocphan) { var existing = lopHocPhanrepository.GetById(lophocphan.LopHocPhanId); if (existing != null) { existing.tenLopHocPhan = lophocphan.tenLopHocPhan; existing.MonHocId = lophocphan.MonHocId; existing.soLuongSV = lophocphan.soLuongSV; existing.NgayBD = lophocphan.NgayBD; existing.NgayKT = lophocphan.NgayKT; existing.NgayKTDK = lophocphan.NgayKTDK; existing.Mota = lophocphan.Mota; existing.TrangThai = lophocphan.TrangThai; existing.GiangVienid = lophocphan.GiangVienid; existing.Hockyid = lophocphan.Hockyid; lopHocPhanrepository.Update(existing); } return(null); }