public ActionResult SearchFileAssignCheck(string searchFileName)
        {
            OCRInvoiceSearchViewModel objModel = new OCRInvoiceSearchViewModel();

            try
            {
                objModel.OCRFileSearchResult = Mapper.Map <IEnumerable <OCRFileInvoices> >(_ocr.GetOCRFilesInvoiceRecords(searchFileName, GlobalConst.Records.Skip, GlobalConst.Records.Take));
                objModel.OCRFileCount        = _ocr.GetOCRFilesInvoiceRecordsCount(searchFileName);
            }
            catch (Exception ex)
            {
                _arCommonService.CreateErrorLog(ex.Message, ex.StackTrace);
            }
            return(Json(objModel, GlobalConst.ContentTypes.TextHtml));
        }
Exemple #2
0
        public void Get_OCRFilesInvoiceRecordsCount(string SearchText)
        {
            int Count = _IOCRImplBL.GetOCRFilesInvoiceRecordsCount("%");

            Assert.IsTrue(Count < 0, "Unable to find");
        }