﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcNG.Controllers
{
    public class ngAppController : BaseTSController
    {
        //
        // GET: /ngApp/main
        public ActionResult main() { //DON'T USE Index - DON'T WORK!
            ViewBag.WAIT = 5000;            
            return View();            
        }

    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web
using System.Web.Mvc;

namespace MvcNG.Controllers
{
    public class ngAppController : BaseTSController
    {
        //
        // GET: /ngApp/main
        public ActionResult main() { //DON'T USE Index - DON'T WORK!
            ViewBag.WAIT = 5000;
            if (User.Identity.IsAuthenticated) {
               ViewBag.NAME = User.Identity.Name;
            } else {
               ViewBag.NAME = "Pippo"; 
            }
            return View();            
        }

    }
}

Add logic to inject NAME in ViewBag based of Identity
Add logic to inject NAME in ViewBag based of Identity