diff --git a/IServices/INoteService.cs b/IServices/INoteService.cs index e3f855f..d623438 100644 --- a/IServices/INoteService.cs +++ b/IServices/INoteService.cs @@ -1,4 +1,5 @@ using IO.Swagger.DTO; +using Org.BouncyCastle.Bcpg.OpenPgp; using System; using System.Collections.Generic; using System.Linq; @@ -8,5 +9,12 @@ namespace EPAServeur.IServices { interface INoteService { + public List GetNotes(); + public List GetNotesByAuteur(Guid? idAuteur); + public DetailsNoteDTO GetNoteById(int? idNote); + public List GetNotByCollaborateur(Guid? idAuteur, Guid? idCollaborateur); + public bool AjouterNote(DetailsNoteDTO nouvelleNote); + public bool SupprimerNote(int? idNote); + public void UpdateNote(int? idNote, DetailsNoteDTO note); } } diff --git a/Services/NoteService.cs b/Services/NoteService.cs new file mode 100644 index 0000000..e818d76 --- /dev/null +++ b/Services/NoteService.cs @@ -0,0 +1,65 @@ +using EPAServeur.IServices; +using EPAServeur.Models.Notes; +using IO.Swagger.DTO; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace EPAServeur.Services +{ + public class NoteService : INoteService + { + public bool AjouterNote(DetailsNoteDTO nouvelleNote) + { + throw new NotImplementedException(); + } + + public List GetNotByCollaborateur(Guid? idAuteur, Guid? idCollaborateur) + { + throw new NotImplementedException(); + } + + public DetailsNoteDTO GetNoteById(int? idNote) + { + throw new NotImplementedException(); + } + + public List GetNotes() + { + throw new NotImplementedException(); + } + + public List GetNotesByAuteur(Guid? idAuteur) + { + throw new NotImplementedException(); + } + + public bool SupprimerNote(int? idNote) + { + throw new NotImplementedException(); + } + + public void UpdateNote(int? idNote, DetailsNoteDTO note) + { + throw new NotImplementedException(); + } + + //Object to DTO + public AffichageNoteDTO NoteToAffichageDTO(Note note) + { + return null; + } + + public DetailsNoteDTO NoteToDetailSDTO(Note note) + { + return null; + } + + //DTO to Object + public Note DetailsNoteDTOToNote(DetailsNoteDTO detailsNoteDTO) + { + return null; + } + } +}