api v2.2
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Core.Entities;
|
||||
|
||||
namespace Application.Services.Database;
|
||||
|
||||
public interface IPatientRepository
|
||||
{
|
||||
Task AddAsync(Patient patient);
|
||||
|
||||
Task<Patient?> GetByIdAsync(Guid id);
|
||||
|
||||
Task<Patient?> FindByEmailAsync(string email);
|
||||
|
||||
Task UpdateAsync(Patient doctor);
|
||||
|
||||
Task DeleteAsync(Patient doctor);
|
||||
|
||||
Task<IEnumerable<Patient>> GetAllAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user