示例#1
0
        public List <ProfileShortInfoVM> GetAllUserProfileShortInfo()
        {
            var result = new List <ProfileShortInfoVM>();

            if (UserProfileCollection.Any())
            {
                foreach (var item in UserProfileCollection)
                {
                    result.Add(new ProfileShortInfoVM(item));
                }
            }
            return(result);
        }
示例#2
0
        public List <ProfileUpdateInfoVM> GetAllUserProfileUpdateInfo()
        {
            var result = new List <ProfileUpdateInfoVM>();

            if (UserProfileCollection.Any())
            {
                foreach (var item in UserProfileCollection)
                {
                    //result.Add(new ProfileUpdateInfoVM(item));
                    result.Add(ServiceAutoMapModelMapper.CreateProfileUpdateInfoVM(item));
                }
            }
            return(result);
        }