I need the value to change to a database field, it should show the name, but how do I do it?
<ul class="nav navbar-nav navbar-right">
<li>
@Html.ActionLink("Hello " + **User.Identity.GetUserId()** + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
</li>
<li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
</ul>
I need to see another value, not the email field, like a "Nombres" using my IdentityModels:
public class ApplicationUser : IdentityUser
{
public int Rut { get; set; }
public string Nombres { get; set; }
public string Apellidos { get; set; }
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:dd-MM-yyy}", ApplyFormatInEditMode = true)]
public DateTime FechaNacimiento { get; set; }
public int Telefono { get; set; }
public string Direccion { get; set; }
public int Nacionalidad { get; set; }
User.Identity.GetUserId() shows the email, but I need it to show the "Nombres" data.