phronCare/Models/Interfaces/IPhSCustomerRepository.cs

27 lines
698 B
C#
Raw Normal View History

2025-04-04 14:58:44 -03:00
using Domain.Entities;
2025-04-06 01:19:47 -03:00
using Domain.Generics;
2025-04-04 14:58:44 -03:00
using Models.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.Interfaces
{
public interface IPhSCustomerRepository
{
Task<ECustomer> AddAsync(ECustomer entity);
Task<bool> DeleteAsync(int id);
Task<IEnumerable<ECustomer>> GetAllAsync();
Task<ECustomer?> GetByIdAsync(int id);
2025-04-06 01:19:47 -03:00
Task<PagedResult<ECustomer>> SearchAsync(
string? name,
string? email,
string? document,
int page,
int pageSize);
2025-04-04 14:58:44 -03:00
Task<bool> UpdateAsync(ECustomer entity);
}
}