private static void CreateUser(Group adminGroup, ForumSystemContext forumSystemContext)
        {
            var user = new User()
            {
                FirstName = "John",
                LastName = "Snow",
                Nickname = "Bastard",
                Group = adminGroup
            };

            forumSystemContext.Users.Add(user);
        }
        private static Group GetOrCreateAdminGroup(ForumSystemContext forumSystemContext)
        {
            var adminGroup = forumSystemContext.Groups.FirstOrDefault(g => g.GroupName == "Admins");

            if (adminGroup == null)
            {
                adminGroup = new Group()
                {
                    GroupName = "Admins"
                };

                forumSystemContext.Groups.Add(adminGroup);
            }

            return adminGroup;
        }
        /// <summary>
        /// Started the transaction implicitly. 
        /// </summary>
        private static void AddUserAndGroup()
        {
            using (var forumSystemContext = new ForumSystemContext())
            {
                try
                {
                    var adminGroup = GetOrCreateAdminGroup(forumSystemContext);
                    CreateUser(adminGroup, forumSystemContext);

                    forumSystemContext.SaveChanges();

                    Console.WriteLine("User and Group was created successfully!");
                }
                catch (DbUpdateException se)
                {
                    Console.WriteLine("Error: " + se.InnerException.InnerException.Message);
                }
            }
        }