public async Task <ActionResult> Edit( [Bind( Include = "Id,ClientOneName,ClientTwoName,UserId,CompletionDateTime,PageOneClientOneId,PageTwoId,PageThreeId,PageFourId,PageFiveId,PageSixId,PageSevenId,PageEightId,PageNineId,PageTenId,CreatedDateTime" )] FactFind factFind) { if (ModelState.IsValid) { _db.Entry(factFind).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.Id = new SelectList(_db.PageEights, "Id", "ClientOneRequiredEmergancyFund", factFind.Id); ViewBag.Id = new SelectList(_db.PageFives, "Id", "IncomeNotes", factFind.Id); ViewBag.Id = new SelectList(_db.PageFours, "Id", "Id", factFind.Id); ViewBag.Id = new SelectList(_db.PageNines, "Id", "Notes", factFind.Id); ViewBag.Id = new SelectList(_db.PageOnes, "Id", "ClientOneForename", factFind.Id); ViewBag.Id = new SelectList(_db.PageSevens, "Id", "AssetsNotes", factFind.Id); ViewBag.Id = new SelectList(_db.PageSixs, "Id", "OutGoingsNotes", factFind.Id); ViewBag.Id = new SelectList(_db.PageTens, "Id", "Notes", factFind.Id); ViewBag.Id = new SelectList(_db.PageThrees, "Id", "ClientOneSolicitor", factFind.Id); ViewBag.Id = new SelectList(_db.PageTwos, "Id", "ClientOneOccupation", factFind.Id); return(View(factFind)); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,ClientOnePersonalProtectionPriority,ClientOnePensionPlanningPriority,ClientOneOptionsAtRetirementPriority,ClientOneSavingsAndInvestmentsPriority,ClientOneEstatePlanningPriority,ClientOneMortgageNeedsPriority,ClientOneEquityReleasePriority,ClientOneLongTermCarePriority,ClientOneGeneralInsuranceNeedsPriority,Notes,ClientTwoPersonalProtectionPriority,ClientTwoPensionPlanningPriority,ClientTwoOptionsAtRetirementPriority,ClientTwoSavingsAndInvestmentsPriority,ClientTwoEstatePlanningPriority,ClientTwoMortgageNeedsPriority,ClientTwoEquityReleasePriority,ClientTwoLongTermCarePriority,ClientTwoGeneralInsuranceNeedsPriority,ClientTwoPrioritiesNotes,CreatedDateTime")] PageNine pageNine) { if (!ModelState.IsValid) { return(View(pageNine)); } _db.Entry(pageNine).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageTen")); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,ClientOneHome,ClientOneOtherProperty,ClientOneCashDeposits,ClientOneInvestmentBonds,ClientOnePensionFunds,ClientOneIsa,ClientOneCollectives,ClientOneShares,ClientOneBuisnessAssets,ClientOneOtherAssets,ClientOneTotalAssets,ClientOneMainMortgage,ClientOneCreditCards,ClientOneOverdraft,ClientOneLoansHp,ClientOneOtherMortgage,ClientOneOtherLending,ClientOneTotalDebt,ClientTwoHome,ClientTwoOtherProperty,ClientTwoCashDeposits,ClientTwoInvestmentBonds,ClientTwoPensionFunds,ClientTwoIsa,ClientTwoCollectives,ClientTwoShares,ClientTwoBuisnessAssets,ClientTwoOtherAssets,ClientTwoTotalAssets,ClientTwoMainMortgage,ClientTwoCreditCards,ClientTwoOverdraft,ClientTwoLoansHp,ClientTwoOtherMortgage,ClientTwoOtherLending,ClientTwoTotalDebt,AssetsNotes,CreatedDateTime")] PageSeven pageSeven) { if (!ModelState.IsValid) { return(View(pageSeven)); } _db.Entry(pageSeven).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageEight")); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,ClientOneSolicitor,ClientOneAccountant,ClientOneAdviserOther,ClientTwoSolicitor,ClientTwoAccountant,ClientTwoAdviserOther,CreatedDateTime")] PageThree PageThree) { if (!ModelState.IsValid) { return(View(PageThree)); } _db.Entry(PageThree).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageFour")); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,ClientOneMortageRent,ClientOneCouncilTax,ClientOneUtilities,ClientOneFoodShopping,ClientOneTvSateliteCableInternet,ClientOnePhone,ClientOneTransportation,ClientOneFinancials,ClientOneLoansCreditStoreCardRepayments,ClientOneSavings,ClientOneInsurance,ClientOnePensionContributions,ClientOneMiscellaneious,ClientOneHolidays,ClientOneRegularSubscriptions,ClientOneClothing,ClientOneOther,ClientOneTotalOutgoings,ClientOneSurplusIncome,ClientOneFinancialGoalCommitment,ClientTwoMortageRent,ClientTwoCouncilTax,ClientTwoUtilities,ClientTwoFoodShopping,ClientTwoTvSateliteCableInternet,ClientTwoPhone,ClientTwoTransportation,ClientTwoFinancials,ClientTwoLoansCreditStoreCardRepayments,ClientTwoSavings,ClientTwoInsurance,ClientTwoPensionContributions,ClientTwoMiscellaneious,ClientTwoHolidays,ClientTwoRegularSubscriptions,ClientTwoClothing,ClientTwoOther,ClientTwoTotalOutgoings,ClientTwoSurplusIncome,ClientTwoFinancialGoalCommitment,OutGoingsNotes,CreatedDateTime")] PageSix pageSix) { if (!ModelState.IsValid) { return(View(pageSix)); } _db.Entry(pageSix).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageSeven")); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,ClientOneEmploymentStatusEnum,ClientOneOccupation,ClientOneDetailsOfEmployer,ClientOneEmploymentStartDate,ClientOneIntendedRetirementAge,ClientTwoStatusEnumEmploymentStatusEnum,ClientTwoOccupation,ClientTwoDetailsOfEmployer,ClientTwoEmploymentStartDate,ClientTwoIntendedRetirementAge,CreatedDateTime")] PageTwo pageTwo) { if (!ModelState.IsValid) { return(View(pageTwo)); } _db.Entry(pageTwo).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageThree")); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,AnyFinancialDependants,CreatedDateTime")] PageFour pageFour) { if (!ModelState.IsValid) { return(View(pageFour)); } _db.Entry(pageFour).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageFive")); }
public async Task <ActionResult> Edit([Bind(Include = "Id,Notes,CreatedDateTime")] PageTen pageTen) { if (!ModelState.IsValid) { return(View(pageTen)); } _db.Entry(pageTen).State = EntityState.Modified; await _db.SaveChangesAsync(); var factFindRepositorty = new FactFindRepositorty(_db); var factFind = await factFindRepositorty.Get(pageTen.Id); if (factFind == null) { return(RedirectToAction("Details", "FactFind")); } factFind.CompletionDateTime = DateTime.UtcNow; _db.Entry(factFind).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Details", "FactFind", new { @id = 1 })); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,ClientOneGrossEmploymentIncome,ClientOneGrossSelfEmploymentIncome,ClientOneGrossPrivatePensionIncome,ClientOneGrossStatePension,ClientOneAdditionalIncome,ClientOneTotalAnnualIncome,ClientOneTotalGrossMonthlyIncome,ClientOneTotalNetMonthlyIncome,ClientOneTaxRate,ClientOneAnyChangesToIncome,ClientOneAnyChangesToTax,IncomeNotes,ClientTwoGrossEmploymentIncome,ClientTwoGrossSelfEmploymentIncome,ClientTwoGrossPrivatePensionIncome,ClientTwoGrossStatePension,ClientTwoAdditionalIncome,ClientTwoTotalAnnualIncome,ClientTwoTotalGrossMonthlyIncome,ClientTwoTotalNetMonthlyIncome,ClientTwoTaxRate,ClientTwoAnyChangesToIncome,ClientTwoAnyChangesToTax,ClientTwoIncomeNotes,CreatedDateTime")] PageFive pageFive) { if (!ModelState.IsValid) { return(View(pageFive)); } _db.Entry(pageFive).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageSix")); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,ClientOneRequiredEmergancyFund,ClientOnePlannedExpenditure,ClientOneMadeAWill,Notes,ClientTwoRequiredEmergancyFund,ClientTwoPlannedExpenditure,ClientTwoMadeAWill,ClientTwoWillNotes,CreatedDateTime")] PageEight pageEight) { if (!ModelState.IsValid) { return(View(pageEight)); } _db.Entry(pageEight).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageNine")); }
public async Task <ActionResult> Edit( [Bind(Include = "Id,PageFourId,Name,DateOfBirth,Relationship,Notes,CreatedDateTime")] NonFinancialDependants nonFinancialDependants) { if (ModelState.IsValid) { db.Entry(nonFinancialDependants).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.PageFourId = new SelectList(db.PageFours, "Id", "Id", nonFinancialDependants.PageFourId); return(View(nonFinancialDependants)); }
public async Task <ActionResult> Edit( [Bind( Include = "Id,ClientOneTitle,ClientOneForename,ClientOneSurnames,ClientOneAddressLineOne,ClientOneAddressLineTwo,ClientOneAddressLineThree,ClientOneCounty,ClientOnePostCode,ClientOneEmailAddress,ClientOneHomeTelephone,ClientOneMobileTelephone,ClientOneDateOfBirth,ClientOneSex,ClientOneMartialStatus,ClientOneGoodHealth,ClientOneSmoked,ClientOneNationalInsuranceNumber,ClientOneNationality,ClientOneCountryOfBirth,ClientOneCountryOfResidence,ClientOneDomicile,ClientOneTaxationResidency,Notes,ClientTwoTitle,ClientTwoForename,ClientTwoSurnames,ClientTwoAddressLineOne,ClientTwoAddressLineTwo,ClientTwoAddressLineThree,ClientTwoCounty,ClientTwoPostCode,ClientTwoEmailAddress,ClientTwoHomeTelephone,ClientTwoMobileTelephone,ClientTwoDateOfBirth,ClientTwoSex,ClientTwoMartialStatus,ClientTwoGoodHealth,ClientTwoSmoked,ClientTwoNationalInsuranceNumber,ClientTwoNationality,ClientTwoCountryOfBirth,ClientTwoCountryOfResidence,ClientTwoDomicile,ClientTwoTaxationResidency,ClientTwoExtraInformation,CreatedDateTime" )] PageOne pageOne) { if (!ModelState.IsValid) { return(View(pageOne)); } _db.Entry(pageOne).State = EntityState.Modified; await _db.SaveChangesAsync(); var factFindRepositorty = new FactFindRepositorty(_db); var factFind = await factFindRepositorty.Get(pageOne.Id); factFind.ClientOneName = string.Format("{0} {1}", pageOne.ClientOneForename, pageOne.ClientOneSurnames); factFind.ClientTwoName = string.Format("{0} {1}", pageOne.ClientTwoForename, pageOne.ClientTwoSurnames); _db.Entry(factFind).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Edit", "PageTwo")); }
public async Task <ActionResult> Edit( [Bind( Include = "Id,PageSevenId,MoregateLoadCreditOwner,Lender,Amount,RepaymentType,RepaymentDate,CreatedDateTime")] BreakDownOfLiabilities breakDownOfLiabilities) { if (ModelState.IsValid) { _db.Entry(breakDownOfLiabilities).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.PageSevenId = new SelectList(_db.PageSevens, "Id", "AssetsNotes", breakDownOfLiabilities.PageSevenId); return(View(breakDownOfLiabilities)); }
public async Task <ActionResult> Edit( [Bind( Include = "Id,FirstName,SecondName,EmailAddress,PasswordHash,PasswordSalt,SessionToken,IsAdmin,LastLoggedIn,CreatedDateTime" )] User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(user)); }
public async Task <ActionResult> Edit( [Bind( Include = "Id,GrossPremium,PremiumFrequency,Waiver,InTrust,Term,LifeCover,CICCover,PageTenId,Owner,Provider,PolicyNumber,ProductPlanType,InForce,CreatedDateTime" )] ProtectionAndInsurancePolicies protectionAndInsurancePolicies) { if (ModelState.IsValid) { _db.Entry(protectionAndInsurancePolicies).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.PageTenId = new SelectList(_db.PageTens, "Id", "Notes", protectionAndInsurancePolicies.PageTenId); return(View(protectionAndInsurancePolicies)); }
public async Task <ActionResult> Edit( [Bind( Include = "Id,Contribution,Frequency,Pci,AdditionalLifeCover,LastValuation,PageTenId,Owner,Provider,PolicyNumber,ProductPlanType,InForce,CreatedDateTime" )] PensionPolicies pensionPolicies) { if (ModelState.IsValid) { _db.Entry(pensionPolicies).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.PageTenId = new SelectList(_db.PageTens, "Id", "Notes", pensionPolicies.PageTenId); return(View(pensionPolicies)); }
public async Task <ActionResult> Edit( [Bind( Include = "Id,Contrbution,Frequency,InTrust,LastValuation,PageTenId,Owner,Provider,PolicyNumber,ProductPlanType,InForce,CreatedDateTime" )] SavingsAndInvestmentPolicies savingsAndInvestmentPolicies) { if (ModelState.IsValid) { _db.Entry(savingsAndInvestmentPolicies).State = EntityState.Modified; await _db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.PageTenId = new SelectList(_db.PageTens, "Id", "Notes", savingsAndInvestmentPolicies.PageTenId); return(View(savingsAndInvestmentPolicies)); }