public void RefreshPage()
 {
     try
     {
         Documents = unitOfWork.GetLastDocument().Where(x => x.CreatedDate.Value.Date >= StartDate.Date && x.CreatedDate.Value.Date <= EndDate.Date).ToList();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
 protected ReDeliveryViewModel(INextBOUnitOfWork UnitOfWork, IDocumentManagerService documentManager)
 {
     Documents = UnitOfWork.GetLastDocument();
     FindDocumentssByDocNum(UnitOfWork);
     unitOfWork             = UnitOfWork;
     DocumentManagerService = documentManager;
 }