public void updateProduct(int id, ProductType productType) { if (getProductTypes(id) == null) { return; } typeFactory.updateProductType(getProductTypes(id), productType); db.SaveChanges(); }