Ajout du squelette du service des notes

develop
Yanaël GRETTE 4 years ago
parent 1354101310
commit e38ef1b7ce
  1. 8
      IServices/INoteService.cs
  2. 65
      Services/NoteService.cs

@ -1,4 +1,5 @@
using IO.Swagger.DTO; using IO.Swagger.DTO;
using Org.BouncyCastle.Bcpg.OpenPgp;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -8,5 +9,12 @@ namespace EPAServeur.IServices
{ {
interface INoteService interface INoteService
{ {
public List<AffichageNoteDTO> GetNotes();
public List<AffichageNoteDTO> GetNotesByAuteur(Guid? idAuteur);
public DetailsNoteDTO GetNoteById(int? idNote);
public List<AffichageNoteDTO> GetNotByCollaborateur(Guid? idAuteur, Guid? idCollaborateur);
public bool AjouterNote(DetailsNoteDTO nouvelleNote);
public bool SupprimerNote(int? idNote);
public void UpdateNote(int? idNote, DetailsNoteDTO note);
} }
} }

@ -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<AffichageNoteDTO> GetNotByCollaborateur(Guid? idAuteur, Guid? idCollaborateur)
{
throw new NotImplementedException();
}
public DetailsNoteDTO GetNoteById(int? idNote)
{
throw new NotImplementedException();
}
public List<AffichageNoteDTO> GetNotes()
{
throw new NotImplementedException();
}
public List<AffichageNoteDTO> 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;
}
}
}
Loading…
Cancel
Save