Tigwi.UI.Models.Storage.StorageContext.SaveChanges C# (CSharp) Method

SaveChanges() public method

Commit the changes to the storage.
public SaveChanges ( ) : bool
return bool
        public bool SaveChanges()
        {
            var success = true;

            if (this.users != null)
            {
                success &= this.users.SaveChanges();
            }

            if (this.posts != null)
            {
                success &= this.posts.SaveChanges();
            }

            if (this.accounts != null)
            {
                success &= this.accounts.SaveChanges();
            }

            if (this.lists != null)
            {
                success &= this.lists.SaveChanges();
            }

            return success;
        }