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 }); }
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(); } }
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); }