Exemplo n.º 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);
        }
Exemplo n.º 2
0
        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++;
            }
        }