Esempio n. 1
0
        /// <summary>
        /// Gets the client attribute values.
        /// </summary>
        /// <returns></returns>
        private List <ClientAttributeValueViewModel> GetClientAttributeValues(IHasAttributes entity)
        {
            var categoryGuids = GetCategoryGuids();

            return(entity.GetClientAttributeValues(RequestContext.CurrentPerson)
                   .Where(av => categoryGuids.Count == 0 || categoryGuids.Any(g => av.Categories.FirstOrDefault(c => c.Guid == g) != null))
                   .ToList());
        }