public ActionResult CorporateDocuments(CorporateDocVerificationModel model, string button) { List<OwnerModel> ownerList = new List<OwnerModel>(); ownerList = _OwnerCorpSessionRepository.GetAll(); contractApi.UpdateCommercialOwnerDetails(CurrentMerchantID, ContractID, ownerList); if (Request.IsAjaxRequest()) { return new JsonResult { Data = "OK" }; } if (button == "Complete") { return CompleteVeriTask(); } base.SetSuccessMessage("Updated"); return RedirectToAction("CorporateDocuments"); }
public ActionResult CorpDocVer(CorporateDocVerificationModel model) { List<OwnerModel> ownerList = new List<OwnerModel>(); ownerList = new OwnerSesssionRepository().GetAll(); new ContractApi().UpdateCommercialOwnerDetails(CurrentMerchantID, ContractID, ownerList); base.SetSuccessMessage("Updated"); return RedirectToAction("CorpDocVer"); }