Blaze.Controllers.HomeController.Force C# (CSharp) Method

Force() public method

public Force ( int val ) : System.Web.Mvc.ActionResult
val int
return System.Web.Mvc.ActionResult
        public ActionResult Force(int val)
        {
            var httpCookie = new HttpCookie("BlazeForce", val.ToString());
            httpCookie.Expires = DateTime.Now.AddDays(1);
            Response.Cookies.Add(httpCookie);
            return Content("OK");
        }