You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
508 B
12 lines
508 B
namespace Shared;
|
|
public interface IGenericDataManager<T>
|
|
{
|
|
Task<int> GetNbItems();
|
|
Task<IEnumerable<T>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false);
|
|
Task<int> GetNbItemsByName(string substring);
|
|
Task<IEnumerable<T>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false);
|
|
Task<T> UpdateItem(T oldItem, T newItem);
|
|
Task<T> AddItem(T item);
|
|
Task<bool> DeleteItem(T item);
|
|
}
|