Ejemplo n.º 1
0
        public ActionResult LoadHybridPathedPartial(PathedDTO model)
        {
            ShipperReturnByIdentity currentIdentityValues = GetValueFromIdentity();

            model.DunsNo    = currentIdentityValues.ShipperDuns;
            model.companyId = String.IsNullOrEmpty(currentIdentityValues.CompanyId) ? 0 : int.Parse(currentIdentityValues.CompanyId);
            model.ShipperID = new Guid(currentIdentityValues.UserId);
            if (model.PathedNomsList == null)
            {
                TempData["status"] = "Please fill row.";
                // return RedirectToAction("Index", new { BatchId = Mainmodel.Id, pipelineId = model.PipelineID });
                return(RedirectToAction("Index", new { pipelineDuns = model.PipelineDuns }));
            }
            Guid?transactionID = _pathedNominationService.SaveAndUpdatePathedNomination(model, true);

            if (transactionID != null)
            {
                TempData["status"] = "Data saved successfully";
            }
            else
            {
                TempData["status"] = "Data saving failed";
            }
            //  return RedirectToAction("Index", new { BatchId = Mainmodel.Id, pipelineId = model.PipelineID });
            return(RedirectToAction("Index", new { pipelineDuns = model.PipelineDuns }));
        }
Ejemplo n.º 2
0
 public void SavePathedBulkUpload(PathedDTO pathed, bool IsSave)
 {
     PathedNominationService.SaveAndUpdatePathedNomination(pathed, true);
 }