コード例 #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
        }
コード例 #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);
        }