Esempio n. 1
0
        public void SetProfileImage(string imageName)
        {
            var profileImage = ProfileImages.FirstOrDefault(x => x.ImageName == imageName);

            if (profileImage != null)
            {
                ProfileImageUrl = profileImage.Url;
            }
        }
Esempio n. 2
0
        public void AddProfileImage(Image image)
        {
            var profileImage =
                ProfileImages.FirstOrDefault(x => x.ImageName == image.ImageName && x.FolderPath == x.FolderPath);

            if (profileImage == null)
            {
                ProfileImages.Add(image);
            }
            else
            {
                profileImage.Url = image.Url;
            }
        }