Example #1
0
        public IActionResult DismissOutageMessage([FromForm] string returnUrl)
        {
            const string SeenCookieValue = "1";

            if (!Request.Cookies.ContainsKey(CookieNames.SeenOutageMessage))
            {
                Response.Cookies.Append(CookieNames.SeenOutageMessage, SeenCookieValue, EsfaCookieOptions.GetSingleDayLifetimeHttpCookieOption(_hostingEnvironment, _timeProvider));
            }

            return(RedirectToRoute(RouteNames.Dashboard_Index_Get));
        }
 public IActionResult DismissOutageMessage([FromForm] string returnUrl) =>
 DismissMessage(
     returnUrl: returnUrl,
     cookieName: CookieNames.SeenOutageMessage,
     cookieOptions: EsfaCookieOptions.GetSingleDayLifetimeHttpCookieOption(_hostingEnvironment, _timeProvider));