In my product box I have this code:
<div class="product-title">
@{
ProductUtils pu1 = new ProductUtils();
var prodname = pu1.GetProductNameFromUrl(Url.RouteUrl("Product", new { SeName = Model.SeName }));
var lowerName = @prodname.ToLower();
}
<a href="@Url.RouteUrl("Product", new { SeName = Model.SeName })">@lowerName</a>
</div>
But for some strange reason it works for all my products but the very first product on the page.
So all titles are now lower case but the first product on the page!
Any idea what could be going wrong?
Thanks