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

18 lines
380 B
C#
Raw Permalink Normal View History

2024-08-21 16:02:56 +00:00
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);
}
}