Exemplo n.º 1
0
        public ContentReference GetProfilePhoto(ProfilePage profilePage)
        {
            var photoImage = new ContentReference();
            if (!ContentReference.IsNullOrEmpty(profilePage.UserPhoto))
                photoImage = profilePage.UserPhoto;
            else
                photoImage = _pageService.GetStartPage().DefaultProfilePic;

            return photoImage;
        }
Exemplo n.º 2
0
        public List<string> GetProjectsWorkedOn(ProfilePage profilePage)
        {
            List<string> projectsList = new List<string>();
            if (profilePage != null)
            {
                var profileCategories = profilePage.ProjectsCategories;

                if (profileCategories == null)
                    return projectsList;

                foreach (int profileCategory in profileCategories)
                {
                    var category = Category.Find(profileCategory).ID.ToString();
                    projectsList.Add(category);
                }
            }

            return projectsList;
        }