public IScheduleNote GetScheduleNote(Guid scheduleNoteId)
        {
            IScheduleNote scheduleNote = null;

            using (var context = new Data.ScheduleContext())
            {
                var item = context.ScheduleNotes.FirstOrDefault(x => x.ScheduleNoteId == scheduleNoteId.ToString());
                if (item != null)
                {
                    scheduleNote = Mapper.Map <ScheduleNoteDto>(item);
                }
            }
            return(scheduleNote);
        }
 public ChangeResult AddScheduleNote(IScheduleNote scheduleNote)
 {
     return(AddScheduleNote(new List <IScheduleNote> {
         scheduleNote
     }));
 }
 public ChangeResult UpdateScheduleNote(IScheduleNote scheduleNote)
 {
     return(UpdateScheduleNote(new List <IScheduleNote> {
         scheduleNote
     }));
 }