Files
PersonaCasa/back/Application/Contracts/Services/IBaseService.cs
Alejandro Sarmiento b672887299 Primera subida
2024-04-06 03:32:16 +02:00

15 lines
359 B
C#

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);
}
}