|
|
|
|
using EPAServeur.Models.Notes;
|
|
|
|
|
using IO.Swagger.DTO;
|
|
|
|
|
using Org.BouncyCastle.Bcpg.OpenPgp;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace EPAServeur.IServices
|
|
|
|
|
{
|
|
|
|
|
public interface INoteService
|
|
|
|
|
{
|
|
|
|
|
Task<DetailsNoteDTO> AjouterNoteAsync(DetailsNoteDTO note);
|
|
|
|
|
Task<bool> SupprimerNoteAsync(long? idNote);
|
|
|
|
|
Task<DetailsNoteDTO> GetNoteByIdAsync(long? idNote);
|
|
|
|
|
Task<IEnumerable<AffichageNoteDTO>> GetNotesByAuteurAsync(Guid? idAuteur, bool? asc, int? numPage, int? parPAge, string texte, string tri);
|
|
|
|
|
Task<int> GetNotesByAuteurCountAsync(Guid? idAuteur, string texte);
|
|
|
|
|
Task<DetailsNoteDTO> UpdateNoteAsync(long? idNote, DetailsNoteDTO note);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|