Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }