public bool CheckDupplicateThoiHanDangKy(DateTime ngaytao) { var action = new bs_DangKiThi(); var result = action.CheckDupplicateThoiHanDangKy(ngaytao); action.Dispose(); return(result); }
public List <ThongTinDangKy> SortThongTinDangKy(sortThongTinDangKi sort, int paging, int sizepaging) { var action = new bs_DangKiThi(); var result = action.SortPhieuDuThi(sort, paging, sizepaging); action.Dispose(); return(result); }
public bool UpdateThongTinDangKy(int mapdt) { var result = true; var action = new bs_DangKiThi(); result = action.UpdatePhieuDuThi(mapdt); action.Dispose(); return(result); }
public List <ThongTinDangKy> GetThongTinDangKy(int paging, int sizepaging) { var action = new bs_DangKiThi(); var result = action.GetPhieuDuThi(paging, sizepaging); action.Dispose(); return(result); }
public crudThongTinDangKi GetPhieuDuThiTheoDK(int maPhieuDuThi) { var action = new bs_DangKiThi(); var temp = action.GetPhieuDuThiTheoDK(maPhieuDuThi); var result = crudThongTinDangKiMapper.MapThongTinDKcrudThongTinDK(temp); action.Dispose(); return(result); }
public List <ThongTinDangKy> SearchPhieuDuThiTheoDK(searchThongTinDangKi objectSearch) { var action = new bs_DangKiThi(); IEnumerable <ThongTinDangKy> result = null; result = action.SearchPhieuDuThiTheoDK(objectSearch.tenthisinh, objectSearch.trangthai); var nulldate = DateTime.Parse("01/01/0001 12:00:00 AM", System.Globalization.CultureInfo.InvariantCulture); if (objectSearch.ngaytao != nulldate) { if (result != null) { var t1 = action.SearchPhieuDuThiTheoDK(objectSearch.ngaytao, objectSearch.trangthai); if (t1 != null) { result = result.Union(t1); } } else { result = action.SearchPhieuDuThiTheoDK(objectSearch.ngaytao, objectSearch.trangthai); } } if (result != null) { result = result.Distinct(); return(result.ToList()); } action.Dispose(); return(null); }