// Deletes given class from db public void Delete <T>(T entity) where T : class { context.Remove(entity); }