Exemplo n.º 1
0
        public ActionResult BatchImportLV(BatchImportSearchRequest oRequest)
        {
            BatchImportSearchResponse oResponse =  STGEbayBatchImportsService.GetImports(oRequest);
            List<StagingEbayBatchImportModel> oList = oResponse.EbayBatchImports.Select(x => x.CreateFrom()).ToList();
            BatchImportViewModel oVModel = new BatchImportViewModel();
            oVModel.data = oList;

            oVModel.recordsTotal = oResponse.TotalCount;
            oVModel.recordsFiltered = oResponse.FilteredCount;

            Session["PageMetaData"] = oRequest;
               var toReturn = Json(oVModel, JsonRequestBehavior.AllowGet);
            return toReturn;
        }
Exemplo n.º 2
0
        public ActionResult BatchImportLV()
        {
            BatchImportSearchRequest viewModel = Session["PageMetaData"] as BatchImportSearchRequest;
              Session["PageMetaData"] = null;
            ViewBag.MessageVM = TempData["message"] as MessageViewModel;

            var oReturnModel = new BatchImportViewModel
            {

                 SearchRequest = viewModel==null ? new BatchImportSearchRequest() : viewModel
            };
            oReturnModel.SearchRequest.IsAsc = false;
            return View(oReturnModel);
        }