Beispiel #1
0
        /// <summary>
        /// Profiles
        /// </summary>
        /// <returns>Profiles</returns>
        private IEnumerable <Abc.Website.Models.UserPublicProfile> Profiles()
        {
            try
            {
                var core           = new UserCore();
                var publicProfiles = core.PublicProfilesFull(Application.Current);

                return((from profile in publicProfiles.Select(p => p.Convert())
                        where !string.IsNullOrWhiteSpace(profile.UserName)
                        orderby profile.PreferedProfile descending
                        , profile.CreatedOn descending
                        select profile).Take(16));
            }
            catch (Exception ex)
            {
                log.Log(ex, EventTypes.Warning, (int)Fault.Unknown);
            }

            return(null);
        }
        public void GetProfileFullPagesApplicationIdentifierEmpty()
        {
            var core = new UserCore();

            core.PublicProfilesFull(new Application());
        }
        public void GetProfileFullPageApplicationNull()
        {
            var core = new UserCore();

            core.PublicProfilesFull(null);
        }