Пример #1
0
        public async Task <PartialViewResult> Information(long?specId)
        {
            if (specId != null)
            {
                var it = await SpecFactory.GetOne(specId.Value);

                if (it != null)
                {
                    return(PartialView(it));
                }
            }

            return(PartialView(new TInfo
            {
                OwnerName = UserSecurity.OwnerText(),
                OwnerId = UserSecurity.EmployeeId
            }));
        }
Пример #2
0
 public ViewResult Executive()
 {
     return(View(new ExecutiveScoreCardScreen(UserSecurity.EmployeeId, UserSecurity.OwnerText())));
 }
Пример #3
0
 public ViewResult Owner()
 {
     return(View(new OwnerScoreCardScreen(UserSecurity.EmployeeId, UserSecurity.OwnerText())));
 }