public Product GetProduct(string productName) { var entity = _database.GetProduct(productName); return(entity != null ? new Product(entity) : null); }