public async Task <bool> Add <TEntity>(TEntity item) where TEntity : class { try { await _db.AddAsync <TEntity>(item); return(await _db.SaveChangesAsync() >= 0); } catch { return(false); } }
public async Task <bool> Add <TEntity>(TEntity item) where TEntity : class { try { await _db.AddAsync <TEntity>(item); return(await _db.SaveChangesAsync() >= 0); } catch { return(false); } }