Пример #1
0
        public BaseVM(IPrincipal user)
        {
            if (user == null)
                return;

            if (user.Identity.GetUserId() == null)
                User = null;
            else
                User = getUserById(new Guid(user.Identity.GetUserId()));
        }
Пример #2
0
 private void init(IPrincipal user)
 {
     _authorizeUser = User;
     Name = User.Name;
     Surname = User.Surname;
     Skype = User.Skype;
     Email = User.Email;
     Description = User.Description;
     Avatar = User.Image;
 }
Пример #3
0
        public User_SkillVM(Users user)
        {

        }