public async Task <bool> DeleteAsync(long id) { return(await context.Set <TEntity>().Where(e => e.Id == id).DeleteAsync() == 1); }