예제 #1
0
        public static AuthPropertyModel ToAuthProperty(PropertyModel model, Dictionary <string, AuthProfileModel> profiles)
        {
            if (model == null || model.Equals(default(PropertyModel)))
            {
                return(null);
            }

            return(new AuthPropertyModel
            {
                Name = model.Name,
                UserId = profiles.First().Key,
                Value = model.Value
            });
        }