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); }
public async Task DeleteAsync(INoteGroupIdentity identity) { await _dataAccessor.DeleteAsync(identity); }
public async Task RemoveUserFromDbAsync(User user) { await _dataAccessor.DeleteAsync(user).ConfigureAwait(false); }
public async Task DeleteAsync(INoteReminderIdentity identity) { await _dataAccessor.DeleteAsync(identity); }
public Task <OperationResult> DeleteAsync(TDataOrder model) => _dataAccessor.DeleteAsync(_queryProvider.Delete(model), GetType, nameof(DeleteAsync));