Exemplo n.º 1
0
        public ActionResult Index()
        {
            var service       = new ChartService();
            var homeViewModel = User.Identity.IsAuthenticated ? service.GetChartsFileNames(User.Identity.Name) : new HomeViewModel();

            return(View(homeViewModel));
        }