FlowAPI / FlowAPI.Application /Interfaces /IGenericRepository.cs
danylokhodus's picture
init
b9c7f0e
Raw
History Blame Contribute Delete
319 Bytes
namespace FlowAPI.Application.Interfaces
{
public interface IGenericRepository<T> where T : class
{
Task<IEnumerable<T>> GetAllAsync();
Task<T?> GetByIdAsync(Guid id);
Task<T> CreateAsync(T entity);
Task<T> UpdateAsync(T entity);
Task<bool> DeleteAsync(Guid id);
}
}