コード例 #1
0
 public ActionResult GetFileAllData()
 {
     try
     {
         LienTempViewModel objLienTempTable = new LienTempViewModel();
         var getFileAllData = _lienTempTable.GetAllLienTempData(GlobalConst.Records.Skip, GlobalConst.Records.LandingTake);
         objLienTempTable.FileUploadViewModelResults = Mapper.Map <IEnumerable <LienTempTable> >(getFileAllData.LienTempTableDetails);
         objLienTempTable.FileCount = getFileAllData.TotalCount;
         return(View(GlobalConst.Views.ExportExcelToDatabase.ImportExcel, objLienTempTable));
     }
     catch (Exception ex)
     {
         _arCommonService.CreateErrorLog(ex.Message, ex.StackTrace);
         return(View(GlobalConst.Views.ExportExcelToDatabase.ImportExcel));
     }
 }
コード例 #2
0
 public ActionResult GetFileAllData(int skip)
 {
     try
     {
         LienTempViewModel objLienTempTable = new LienTempViewModel();
         var getFileAllData = _lienTempTable.GetAllLienTempData(skip, GlobalConst.Records.LandingTake);
         objLienTempTable.FileUploadViewModelResults = Mapper.Map <IEnumerable <LienTempTable> >(getFileAllData.LienTempTableDetails);
         objLienTempTable.FileCount = getFileAllData.TotalCount;
         objLienTempTable.uSkip     = skip;
         return(Json(objLienTempTable, GlobalConst.ContentTypes.TextHtml));
     }
     catch (Exception ex)
     {
         _arCommonService.CreateErrorLog(ex.Message, ex.StackTrace);
         return(Json(GlobalConst.ObjectTypes.Error));
     }
 }