You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
652 B
17 lines
652 B
using Dto;
|
|
using Entities;
|
|
using Shared;
|
|
using Shared.Mapper;
|
|
|
|
namespace API.Service;
|
|
|
|
public class NotePadDataServiceApi(INotePadService<NotepadEntity> notePadService) : INotePadService<NotepadDto>
|
|
{
|
|
public NotepadDto GetNotePadById(int id) => notePadService.GetNotePadById(id).FromEntityToDto();
|
|
|
|
public NotepadDto GetNotePadByIdUserAndIdInquiry(int idUser, int idInquiry) =>
|
|
notePadService.GetNotePadByIdUserAndIdInquiry(idUser, idInquiry).FromEntityToDto();
|
|
|
|
public NotepadDto CreateNotePad(int id, int idUser, int idInquiry, string note) =>
|
|
notePadService.CreateNotePad(id, idUser, idInquiry, note).FromEntityToDto();
|
|
} |