pcut_uwp/PCUT/PCUT.API/Managers/IManager.cs

18 lines
380 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace PCUT.API.Managers
{
public interface IManager<T>
{
Task<List<T>> GetAllAsync();
Task<T> GetByIdAsync(int id);
Task<T> CreateAsync(T entity);
Task<T> UpdateAsync(int id, T entity);
Task<bool> DeleteAsync(int id);
}
}