public async Task<bool> AddOrUpdateAsync(BudgetAccessRight entity)
        {
            if (entity == null)
                throw new ArgumentNullException(nameof(entity));

            var existingBudgetAccessRight = entity.Guid == Guid.Empty
                ? null
                : await BudgetAccessRights.FindAsync(entity.Guid);

            BudgetAccessRights.AddOrUpdate(x => x.Guid, entity);

            await this.SaveChangesAsync();
            return existingBudgetAccessRight == null;
        }
 public async Task<bool> AddOrUpdateAsync(BudgetAccessRight entity)
 {
     await Task.CompletedTask;
     return false;
 }
 public async Task<DeletedEntity<BudgetAccessRight>> DeteleAsync(BudgetAccessRight entity)
 {
     await Task.CompletedTask;
     return new DeletedEntity<BudgetAccessRight>(null);
 }
        public async Task<DeletedEntity<BudgetAccessRight>> DeteleAsync(BudgetAccessRight entity)
        {
            var budgetAccessRightToDelete = entity.Guid == Guid.Empty
                ? null
                : await BudgetAccessRights.FindAsync(entity.Guid);

            var deletedBudgetAccessRight = budgetAccessRightToDelete == null
                ? null
                : BudgetAccessRights.Remove(budgetAccessRightToDelete);

            await this.SaveChangesAsync();
            return new DeletedEntity<BudgetAccessRight>(deletedBudgetAccessRight);
        }
 public Task<DeletedEntity<BudgetAccessRight>> DeteleAsync(BudgetAccessRight entity)
 {
     throw new NotImplementedException();
 }
 public Task<bool> AddOrUpdateAsync(BudgetAccessRight entity)
 {
     throw new NotImplementedException();
 }