Try something like this
<div class="breadcrumb">
@{
@Html.ActionLink("Home", "Index", "HomeController")
if (Html.IsCurrentAction("News", "HomeController"))
{
@:> News
}
if (Html.IsCurrentAction("ShortNews", "HomeController"))
{
@:> @Html.ActionLink("News", "News", "HomeController")
@:> Short News
}
I use a Html helper method to determine if its the current action. Mine is a bit more in-depth, checking not only route values but also query string parameters, and it's not bullet proof, but you could extend it for your purposes.
public static bool IsCurrentAction(this HtmlHelper helper, string actionName,
string controllerName)
{
var routeValues = new RouteValueDictionary(helper.ViewContext.RouteData.Values);
//use this to then check if its current action/controller