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_OCRFilesInvoiceRecordsCount(string SearchText) { int Count = _IOCRImplBL.GetOCRFilesInvoiceRecordsCount("%"); Assert.IsTrue(Count < 0, "Unable to find"); }