If my model have
[DisplayName(\"First Name\")]
public string firstName { get; set; }
Then I can print it in the View with LabelFor
Building on Darren Oster's answer:
@Html.DisplayNameFor(x => x.acc_first)
Here's a link to the documentation for this: https://msdn.microsoft.com/en-us/library/system.web.mvc.html.displaynameextensions.displaynamefor(v=vs.118).aspx
You could use this in your view code like this:
@{
var foo = Html.DisplayNameFor(x => x.acc_first);
// call function
DoStuff(foo);
}