This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/support/tripviewer/web/Models/Stores/IBaseStore.cs

23 lines
450 B
C#
Raw Normal View History

2022-11-03 20:41:13 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Simulator.DataStore.Stores
{
public interface IBaseStore<T>
{
Task InitializeStoreAsync();
Task<T> GetItemAsync(string id);
Task<IEnumerable<T>> GetItemsAsync();
Task<bool> CreateItemAsync(T item);
Task<bool> UpdateItemAsync(T item);
Task<bool> DeleteItemAsync(T item);
}
}