public User RegisterUser(UserRegister userRegister)
        {
            //registers the users
            try
            {
                Document newUser = new Document();
                newUser[DatabaseConfigs.UsersKey] = userRegister.Username.ToLower();
                newUser["FirstName"] = userRegister.FirstName.ToLower();
                newUser["LastName"] = userRegister.LastName.ToLower();
                newUser["Password"] = userRegister.Password;
                newUser["BirthDate"] = userRegister.BirthDate;
                newUser["Email"] = userRegister.Email;
                newUser["Address"] = userRegister.Address.ToLower();
                newUser["WorkLocation"] = userRegister.WorkLocation.ToLower();
                networkDb.GetUsersTable().PutItem(newUser);
                User user = GetUserById(userRegister.Username);
                Users.Add(user.Username, user);

                neo4JDB.RegisterUserToNeo4j(userRegister.Username, userRegister.FirstName, userRegister.LastName);

                return user;
            }
            catch (Exception)
            {
                return null;
            }
        }
 public ResponseEnum RegisterUserToNeo4j(string userName, string firstName, string lastName)
 {
     return(neo4JDB.RegisterUserToNeo4j(userName, firstName, lastName));
 }