This project is read-only.

How to get FirstName of customer from @WorkContext.CurrentUser

Topics: Administration, Customizing Orchard
Aug 19, 2013 at 10:39 AM
Edited Aug 19, 2013 at 10:41 AM
Hi All,
I have some code below:
@T("Hello"), <a href="@Url.Action("ViewCustomer", "Checkout", new { area = "Skywalker.Webshop" })">@WorkContext.CurrentUser.UserName</a>
It's display the userName of customer on View.
Now I want display FirstName of the customer But I don't know How to do?
I used Module Skywalker.Webshop on my project.

Please Help me!! Thanks a lot!
Aug 22, 2013 at 5:31 AM
Where is the first name supposed to be stored? On a custom part? If so, WorkContext.CurrentUser.As<WhateverThatPartIs>().FirstName