Exemplo n.º 1
0
        public AppUserDetailsVM GetAppUserDetailsVM(int userId)
        {
            AppUser          crmUser = AppUserRepository.GetSingle(x => x.Id == userId);
            AppUserDetailsVM result  = AppUserConverter.ToAppUserDetailsVM(crmUser);

            return(result);
        }
Exemplo n.º 2
0
        public AppUserDetailsVM ToAppUserDetailsVM(AppUser user)
        {
            var result = new AppUserDetailsVM()
            {
                Id        = user.Id,
                Email     = user.Email,
                FirstName = user.FirstName,
                LastName  = user.LastName,
                IsActive  = user.IsActive,
                Language  = user.Language.LanguageDictionary.GetDisplayName()
            };

            return(result);
        }