Primera subida
This commit is contained in:
14
back/Application/Contracts/Services/IBaseService.cs
Normal file
14
back/Application/Contracts/Services/IBaseService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using back.Entities.DTOs.Request;
|
||||
using back.Entities;
|
||||
|
||||
namespace back.Application.Contracts.Services
|
||||
{
|
||||
public interface IBaseService<T, A, U> where T : class
|
||||
{
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T> GetOne(int id);
|
||||
Task<T> Add(A dto);
|
||||
Task<bool> Delete(int id);
|
||||
Task<T> Update(U dto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user