AppHarbor.Sample.Controllers.HomeController.Index C# (CSharp) Method

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult Index()
        {
            ViewBag.HasToken = (TokenStore.AccessToken != null);
            ViewBag.Token = TokenStore.AccessToken;
            ViewBag.AuthLink = string.Format("https://appharbor.com/user/authorizations/new?client_id={0}&redirect_uri={1}", Config.ClientID, Config.ClientCallbackUrl);

            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View();
        }