Badges.Controllers.AccountController.Emulate C# (CSharp) Method

Emulate() private method

private Emulate ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult
        public ActionResult Emulate(string id /* Login ID*/)
        {
            if (!string.IsNullOrEmpty(id))
            {
                FormsAuthentication.RedirectFromLoginPage(id, false);
            }
            else
            {
                return Content("Login ID not provided.  Use /Emulate/login");
            }

            return RedirectToAction("Index", "Home");
        }