コード例 #1
0
        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));
        }
コード例 #2
0
        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"));
        }
コード例 #3
0
        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"));
        }
コード例 #4
0
        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"));
        }
コード例 #5
0
        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"));
        }
コード例 #6
0
        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"));
        }
コード例 #7
0
        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"));
        }
コード例 #8
0
        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 }));
        }
コード例 #9
0
        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"));
        }
コード例 #10
0
        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"));
        }
コード例 #11
0
        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));
        }
コード例 #12
0
        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"));
        }
コード例 #13
0
        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));
        }
コード例 #14
0
        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));
        }
コード例 #15
0
        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));
        }
コード例 #16
0
        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));
        }
コード例 #17
0
        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));
        }