mirror of
https://github.com/rudollee/LearningMVC.git
synced 2026-08-11 16:32:55 +00:00
Lambda Expression
This commit is contained in:
@@ -80,10 +80,7 @@ namespace LanguageFeatures.Controllers
|
||||
}
|
||||
};
|
||||
|
||||
Func<Product, bool> categoryFileter = delegate (Product prod)
|
||||
{
|
||||
return prod.Category == "Soccer";
|
||||
};
|
||||
Func<Product, bool> categoryFileter = prod => prod.Category == "Soccer";
|
||||
|
||||
decimal total = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user