public async Task <StaffNotes> CreateNewNote(int staffId, string note) { var newNote = new StaffNotes { Userid = staffId.ToString(), Note = note, DtCreated = DateTime.Now, DtModified = DateTime.Now }; return(await uow.StaffNoteRepository.AddAsync(newNote)); }
public static StaffNoteResponseDTO MapStaffDetailsToDto(StaffNotes staffNotesDetail, IStaffService staffService) { _staffService = staffService; string count = string.Empty; var result = new StaffNoteResponseDTO { Id = staffNotesDetail.Id, Content = staffNotesDetail.Note, DateCreated = staffNotesDetail.DtCreated }; return(result); }