I'm trying to learn C# and MVC3. I wanted to have a WebGrid column as an Html.Action link, however, it wouldn't work until I did this:
grid.Column(format: (item) => Html.ActionLink("Edit", "Edit", new { id = item.Id }))
So I know that this fixes it but why? The (item) looks like a cast but what is the => for? From reading other questions I see that it's evidently bad to do this for some reason - why?