public void LoadByTime() { DateTime fromDate = UtilityFunction.GetDatetime(dtpFromDate); DateTime toDate = UtilityFunction.GetDatetime(dtpTodate); List <Model.Quotation> lstQuotation; using (IUnitOfWork uow = new UnitOfWork()) { lstQuotation = uow.QuotationRepository.LookByDate(fromDate, toDate); uow.Commit(); } gridUtility.BindingData <Model.Quotation>(lstQuotation); }
private void LoadGrid() { DateTime fromDate = UtilityFunction.GetDatetime(dtpFromDate); DateTime toDate = UtilityFunction.GetDatetime(dtpTodate); IList <Quotation> lstQuotation; using (IUnitOfWork uow = new UnitOfWork()) { lstQuotation = uow.QuotationRepository.LookByDate(fromDate, toDate); uow.Commit(); } customGridControl1.BindingData <Quotation>(lstQuotation); }