Beispiel #1
0
 ///////////////INTERFACE METHOD//////////////////////
 public NoteDTO CreateNoteDTO(int userId, int postId, string body)
 {
     try
     {
         var a = CreateNote(userId, postId, body);
         return(NoteMapper.MapNoteToNoteDTO(a));
     }
     catch (Exception ex)
     {
         //   UnitOfWork.WriteErrorLog(ex);
     }
     return(null);
 }
Beispiel #2
0
        public NoteDTO GetNoteAsDTO(int userId, int postId)
        {
            var a = GetNote(userId, postId);

            return(NoteMapper.MapNoteToNoteDTO(a));
        }