public List <ProfileShortInfoVM> GetAllUserProfileShortInfo() { var result = new List <ProfileShortInfoVM>(); if (UserProfileCollection.Any()) { foreach (var item in UserProfileCollection) { result.Add(new ProfileShortInfoVM(item)); } } return(result); }
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); }