public ActionResult Index() { OCRFileSearchViewModel ocrFileSearcViewModel = new OCRFileSearchViewModel(); try { var ocr = _ocr.GetAllOCRRecords(GlobalConst.ConstantChar.Percentage, GlobalConst.Records.Skip, GlobalConst.Records.LandingTake); // ie <ocr> ocrFileSearcViewModel.OCRSearchResult = Mapper.Map <IEnumerable <OCRModel> >(ocr.OCRDetails); ocrFileSearcViewModel.OCRCount = ocr.TotalCount; } catch (Exception ex) { _arCommonService.CreateErrorLog(ex.Message, ex.StackTrace); } return(View(ocrFileSearcViewModel)); }
public void Get_AllOCRRecords() { var getAllOCRRecords = _IOCRImplBL.GetAllOCRRecords("%", 0, 10); Assert.IsTrue(getAllOCRRecords != null, "Unable to find"); }