public static ReconNote MapDtoToReconNote(ReconNoteDto reconNoteDto)
 {
     return(new ReconNote()
     {
         Text = reconNoteDto.Text
     });
 }
        public async Task <IActionResult> UpdateReport([FromBody] ReconNoteDto reconNoteDto)
        {
            if (reconNoteDto == null)
            {
                return(BadRequest());
            }

            await _iReconNoteService.Update(reconNoteDto);

            return(Ok($"Updated note with id = {reconNoteDto.Id}"));
        }
        public async Task <IActionResult> CreateNote([FromBody] ReconNoteDto reconNoteDto)
        {
            if (reconNoteDto == null)
            {
                return(BadRequest());
            }

            await _iReconNoteService.Add(reconNoteDto);

            return(Created("Created new note", reconNoteDto));
        }
 public async Task Update(ReconNoteDto reconNoteDto)
 {
     await _iReconNoteRepository.Update(ReconNoteMapper.MapDtoToReconNote(reconNoteDto));
 }