boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

ASP.NET MVC: Create and Call Custom helper method in Razor markup

Updated on     Kisan Patel

Sometimes, we need to create a custom helper method in the Razor to avoid the duplication of the code. To do that we can use @helper markup followed by the name of the method and parameters if any.

@helper Sum(int a, int b)
{
    <b>@(a + b)</b>
}

To call this helper method, we can call it as if it is any other method defined in Razor server side block.

<li>Inline Helper Method Output: @Sum(10, 30)</li>

ASP.NET MVC

Leave a Reply