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)); }
public void Get_OCRFilesInvoiceRecords() { var getAllOCRRecords = _IOCRImplBL.GetOCRFilesInvoiceRecords("%", 0, 10); Assert.IsTrue(getAllOCRRecords != null, "Unable to find"); }