Exemple #1
0
        public void CreateUserDetails(UserDetails NewUser)
        {
            var userDetails = new UserDetails
            {
                UserName     = _context.Users.FirstOrDefault(p => p.UserName == NewUser.UserName).UserName,
                FirstName    = NewUser.FirstName,
                LastName     = NewUser.LastName,
                LastModified = System.DateTime.Now,
                Inactive     = false,
            };

            UserDetails.Add(userDetails);
        }
        private void SetUserAndFollowing(IList <string> users)
        {
            var index = 0;

            foreach (var user in UniqueUsers)
            {
                UserDetails.Add(new UserDetail()
                {
                    User      = user.Trim(),
                    Following = SplitCommaString(users[index + 1].Trim())
                });
                index++;
            }
        }