Esempio n. 1
0
        public async Task DeleteAsync(INoteIdentity identity)
        {
            var connectedReminders = from item in await _noteReminderGetService.GetAsync()
                                         where item.LinkedNote.Id == identity.Id select item;

            foreach (var i in connectedReminders)
            {
                await _noteReminderDeleteService.DeleteAsync(new NoteReminderIdentityModel(i.Id));
            }
            await _dataAccessor.DeleteAsync(identity);
        }
Esempio n. 2
0
 public async Task DeleteAsync(INoteGroupIdentity identity)
 {
     await _dataAccessor.DeleteAsync(identity);
 }
 public async Task RemoveUserFromDbAsync(User user)
 {
     await _dataAccessor.DeleteAsync(user).ConfigureAwait(false);
 }
Esempio n. 4
0
 public async Task DeleteAsync(INoteReminderIdentity identity)
 {
     await _dataAccessor.DeleteAsync(identity);
 }
 public Task <OperationResult> DeleteAsync(TDataOrder model) =>
 _dataAccessor.DeleteAsync(_queryProvider.Delete(model), GetType, nameof(DeleteAsync));