Пример #1
0
        public ViewResult AvsView(ActionExecutingContext context)
        {
            AgeVerificationViewModel model = new AgeVerificationViewModel(MobiContext.Current);

            model.OriginalUrl = context.HttpContext.Request.RawUrl; // TODO: check if this is correct

            ViewResult viewResult = new ViewResult();

            viewResult.ViewName       = "AgeVerification";
            viewResult.ViewData.Model = model;
            return(viewResult);
        }
Пример #2
0
 public AgeVerificationPage()
 {
     InitializeComponent();
     Shell.SetTabBarIsVisible(this, false);
     BindingContext = new AgeVerificationViewModel();
 }