<commit_before>﻿using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using SFA.DAS.Authentication;
using SFA.DAS.EmployerAccounts.Interfaces;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.Controllers
{
    [RoutePrefix("cookieConsent")]
    public class CookieConsentController : BaseController
    {
        public CookieConsentController(
            IAuthenticationService owinWrapper,
            IMultiVariantTestingService multiVariantTestingService,
            ICookieStorageService<FlashMessageViewModel> flashMessage
        ) : base(owinWrapper, multiVariantTestingService, flashMessage)
        {

        }

        [HttpGet]
        [Route("{HashedAccountId}/settings/{saved}", Order = 0)]
        [Route("{HashedAccountId}/settings", Order = 1)]
        [Route("settings/{saved}", Order = 2)]
        [Route("settings", Order = 3)]
        public ActionResult Settings(bool saved = false)
        {
            return View(new { Saved = saved });
        }

        [HttpPost]
        [Route("{HashedAccountId}/settings", Order = 0)]
        [Route("settings", Order = 1)]
        public ActionResult Settings(bool analyticsConsent, bool marketingConsent)
        {
            var cookies = new List<HttpCookie>
            {
                new HttpCookie("DASSeenCookieMessage", true.ToString().ToLower()),
                new HttpCookie("AnalyticsConsent", analyticsConsent.ToString().ToLower()),
                new HttpCookie("MarketingConsent", marketingConsent.ToString().ToLower())
            };

            cookies.ForEach(x => ControllerContext.HttpContext.Response.Cookies.Add(x));

            return RedirectToAction("Settings", new { saved = true });
        }

        [HttpGet]
        [Route("{HashedAccountId}/details", Order = 0)]
        [Route("details", Order = 1)]
        public ActionResult Details()
        {
            return View();
        }
    }
}<commit_msg>Route Change for the Cookie Controller<commit_after>﻿using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using SFA.DAS.Authentication;
using SFA.DAS.EmployerAccounts.Interfaces;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.Controllers
{    
    public class CookieConsentController : BaseController
    {
        public CookieConsentController(
            IAuthenticationService owinWrapper,
            IMultiVariantTestingService multiVariantTestingService,
            ICookieStorageService<FlashMessageViewModel> flashMessage
        ) : base(owinWrapper, multiVariantTestingService, flashMessage)
        {

        }

        [HttpGet]
        [Route("accounts/{HashedAccountId}/cookieConsent/{saved}", Order = 0)]
        [Route("accounts/{HashedAccountId}/cookieConsent", Order = 1)]
        [Route("cookieConsent/{saved}", Order = 2)]
        [Route("cookieConsent", Order = 3)]        
        public ActionResult Settings(bool saved = false)
        {
            return View(new { Saved = saved });
        }

        [HttpPost]
        [Route("accounts/{HashedAccountId}/cookieConsent", Order = 0)]
        [Route("cookieConsent", Order = 1)]        
        public ActionResult Settings(bool analyticsConsent, bool marketingConsent)
        {
            var cookies = new List<HttpCookie>
            {
                new HttpCookie("DASSeenCookieMessage", true.ToString().ToLower()),
                new HttpCookie("AnalyticsConsent", analyticsConsent.ToString().ToLower()),
                new HttpCookie("MarketingConsent", marketingConsent.ToString().ToLower())
            };

            cookies.ForEach(x => ControllerContext.HttpContext.Response.Cookies.Add(x));

            return RedirectToAction("Settings", new { saved = true });
        }

        [HttpGet]
        [Route("accounts/{HashedAccountId}/cookieConsent/details", Order = 0)]
        [Route("cookieConsent/details", Order = 1)]
        public ActionResult Details()
        {
            return View();
        }
    }
}
{'fraction_non_alphanumeric': 0.11116600790513834, 'fraction_numerical': 0.003952569169960474, 'mean_word_length': 2.6055209260908283, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5045504', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1057, 'n_words': 198}