Esempio n. 1
0
        private void GetLogonInformation(DashboardDisplayViewModel model)
        {
            var userName = this.User.Identity.Name;
            var logonSummary = _logonInfoService.GetLogonSummary(userName);

            AutoMapper.Mapper.Map(logonSummary, model); // Map LogonSummary to the ViewModel
        }
Esempio n. 2
0
        /// <summary>
        /// Dashboard for showing all the settings for a photographer.
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            var model = new DashboardDisplayViewModel();
            GetLogonInformation(model);

            return View(model);
        }