Exemplo n.º 1
0
        public MobileVerificationResponse Post(MobileVerification request)
        {
            var user = Db.SingleById <PortalTempUser>(request.Id);

            if (!user.MobileVerificationCode.Equals(request.VerificationCode))
            {
                throw new InvalidVerificationCode("Invalid code");
            }
            return(new MobileVerificationResponse {
                FullName = user.FullName
            });
        }
Exemplo n.º 2
0
        public async Task SaveMobileGeneratedVerificationCode(int personId, int Code)
        {
            using (var ctx = new DispatchContext())
            {
                DTO.Entities.MobileVerification mv = new MobileVerification
                {
                    PersonId         = personId,
                    VerificationCode = Code
                };

                ctx.MobileVerifications.Add(mv);

                await ctx.SaveChangesAsync();
            }
        }
Exemplo n.º 3
0
        private string DoNavigationForMobileVerificationCust()
        {
            MobileVerification mverify = new MobileVerification(driver);

            mverify.ClickBack();
            VerifyEmailMobile emailMobile = new VerifyEmailMobile(driver);

            emailMobile.ClickBack();
            MainPage mainPage = new MainPage(driver);

            mainPage.ClickEReturn();
            EReturn eReturPage = new EReturn(driver);

            eReturPage.ClickBackToPrint();
            PrintPage printPage = new PrintPage(driver);

            printPage.SelectYearAndVaigate(year);
            ReturnStatusPage statusListPage = new ReturnStatusPage(driver);
            string           message        = statusListPage.getInitiatedData();

            return(message);
        }