Exemplo n.º 1
0
 public IEnumerable<TINH_TP_SearchResult> TINH_TP_Search(TINH_TP_SearchResult data, int? top)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.TINH_TP_Search(data.maTinh_TP,
                                      data.maXTinh_TP,
                                      data.tenTinh_TP,
                                      data.maNguoiLap,
                                      data.thoiGianLap == null ? "" : data.thoiGianLap.Value.ToString(Constants.FormatDate),
                                      data.maNguoiDuyet,
                                      data.thoiGianDuyet == null ? "" : data.thoiGianDuyet.Value.ToString(Constants.FormatDate),
                                      data.maTrangThaiDuyet,
                                      data.trangThaiDuLieu,
                                      top).ToList();
         }
     }
     catch (Exception e) { return null; }
 }