Beispiel #1
0
 public CodeNote Map(CodeNoteRequest source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new CodeNote
     {
         Id = source.Id,
         Title = source.Title,
         Description = source.Description,
         ProjectId = source.ProjectId,
         NoteTypeId = source.NoteTypeId,
         GeneralSubjectId = source.GeneralSubjectId,
         SpecificSubjectId = source.SpecificSubjectId,
         IsBookMarked = source.IsBookMarked,
         CreatedDate = source.CreatedDate,
         ModifiedDate = source.ModifiedDate,
         UserId = source.UserId,
     });
 }
Beispiel #2
0
 public Task <CodeNoteRequest> AddCodeNote(CodeNoteRequest codeNoteRequest)
 {
     throw new NotImplementedException();
 }
 public async Task <CodeNoteRequest> Post(CodeNoteRequest codeNoteRequest)
 {
     return(await _codeNoteService.AddCodeNote(codeNoteRequest));
 }