From e38ef1b7ce069c9c6df25fe11e75885a5e995a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Fri, 4 Sep 2020 17:59:14 +0200 Subject: [PATCH] Ajout du squelette du service des notes --- IServices/INoteService.cs | 8 +++++ Services/NoteService.cs | 65 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 Services/NoteService.cs 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; + } + } +}