Exemplo n.º 1
0
        public ActionResult UKVerify(string id, UKVerify ukverify)
        {
            var cmd = new AddUKVerify
            {
                FormId = id,
            };

            return(Exec(cmd,
                        success: next => RedirectNext(next),
                        failure: () => UKVerify_Render(id, ukverify)));
        }
Exemplo n.º 2
0
        private ActionResult UKVerify_Render(string formId, UKVerify details)
        {
            //Save the formid (session identifier) prior to leaving BSG and entering GOV.UKVerify site
            System.Web.HttpCookie aCookie = new System.Web.HttpCookie("formId");
            aCookie.Value   = formId;
            aCookie.Expires = DateTime.UtcNow.AddHours(1);
            Response.Cookies.Add(aCookie);

            return(NavigableView <UKVerifyModel>(formId, Sections.UKVerify, (m, f) =>
            {
                var actionUrl = System.Configuration.ConfigurationManager.AppSettings["gov.ukverifyapply"];

                m.VerifyPath = actionUrl;
                m.UKVerify = details ?? f.UKVerify;
            }));
        }