public ActionResult EbayItemImportLV(StagingEbayItemRequest oRequest) { EbayItemSearchResponse oResponse = StagingEbayLoadService.GetImports(oRequest); List <StagingEbayItemModel> oList = oResponse.EbayItemImports.Select(x => x.CreateFrom()).ToList(); EbayItemViewModel oVModel = new EbayItemViewModel(); oVModel.data = oList; oVModel.recordsTotal = oResponse.TotalCount; oVModel.recordsFiltered = oResponse.FilteredCount; Session["PageMetaData"] = oRequest; var toReturn = Json(oVModel, JsonRequestBehavior.AllowGet); return(toReturn); }
//public ActionResult StarEbayBatchLoad() //{ // try // { // var wsClient = new TmdEbayIntegrationServiceClient(); // wsClient.StartEbayLoadAsync("*****@*****.**", "123456"); // } // catch (FaultException fex) // { // } // catch (Exception ex) // { // } // var toReturn = Json(oVModel, JsonRequestBehavior.AllowGet); // return toReturn; ; //} #endregion #region Ebay Item Import public ActionResult EbayItemImportLV() { if (Request.UrlReferrer == null || Request.UrlReferrer.AbsolutePath == "/Admin/EbayItemImportLV") { Session["PageMetaData"] = null; } StagingEbayItemRequest viewModel = Session["PageMetaData"] as StagingEbayItemRequest; Session["PageMetaData"] = null; ViewBag.MessageVM = TempData["message"] as MessageViewModel; var toReturnModel = new EbayItemViewModel { SearchRequest = viewModel ?? new StagingEbayItemRequest() }; if (viewModel == null) { toReturnModel.SearchRequest.IsAsc = false; } return(View(toReturnModel)); }