public async Task <int> DeleteAsync(string id) { var entity = await _vehicleDbContext.FindAsync <TEntity>(id); _vehicleDbContext.Set <TEntity>().Remove(entity); return(await _vehicleDbContext.SaveChangesAsync()); }