public ActionResult GetPagedList(OcrDataCriteria criteria)
        {
            OcrDataService ocrDataService = new OcrDataService();
            var            pagedList      = ocrDataService.GetOcrDataInfoPagedList(criteria);

            return(pagedList.ToJqueryDataTableModel());
        }
        public ActionResult SaveOcr(OcrDataModel model)
        {
            OcrDataService ocrDataService = new OcrDataService();
            OcrDataDto     dto            = new OcrDataDto();

            dto.Company         = model.Company;
            dto.DeliveryAddress = model.DeliveryAddress;
            dto.InvoiceDate     = model.InvoiceDate;
            dto.InvoiceNumber   = model.InvoiceNumber;
            dto.TotalAmount     = model.TotalAmount;
            dto.ListData        = model.ListData;
            if (!string.IsNullOrEmpty(model.Id))
            {
                dto.Id = Guid.Parse(model.Id);
            }
            try
            {
                SaveDataOcr(dto);
            }
            catch (Exception ex)
            {
            }

            return(Success());
        }
 public ActionResult Add(Guid?Id)
 {
     ViewBag.ListGo = Id != null;
     if (Id == null)
     {
         OcrDataDto dto = new OcrDataDto();
         return(View(dto));
     }
     else
     {
         OcrDataService ocrDataService = new OcrDataService();
         var            model          = ocrDataService.GetOcrDataById(Id.Value);
         return(View(model));
     }
 }