/// <summary>
        /// Method for adding a user to database
        /// </summary>
        /// <param name="admin">Takes a user with admin priviliges</param>
        private static void AddUser(User admin)
        {
            var userCredentials = AdminView.AddUser();

            if (api.AddUser(admin.Id, userCredentials.userName, userCredentials.password))
            {
                SharedError.Success();
            }
            else
            {
                SharedError.Failed();
            }
        }