public async Task <bool> AddAsync(TEntity entity) { if (entity == null) { throw new ArgumentNullException($"{nameof(AddAsync)} entity must not be null"); } try { await _stardekkDatabaseContext.AddAsync(entity); await _stardekkDatabaseContext.SaveChangesAsync(); return(true); } catch (Exception ex) { throw new Exception($"{nameof(entity)} could not be saved: {ex.Message}"); } }