Beispiel #1
0
        public async Task EditAsyncNotes(ActivityNoteModel model)
        {
            var notes = await _repository.GetAsyncNotes(model.Id);

            ActivitiesFactory.CreateNotes(model, notes, _userId);
            _repository.EditNotes(notes);
            await _unitOfWork.SaveChangesAsync();
        }
Beispiel #2
0
        //For Notes
        public async Task AddAsyncNotes(ActivityNoteModel model)
        {
            await _repository.AddNoteAsync(ActivitiesFactory.CreateNotes(model, _userId));

            await _unitOfWork.SaveChangesAsync();
        }