asp.net mvc - Spark show logged in user -


How can I show the user's name in the Spark view?

The default MVC view engine was a page object that you could get information from.

How do I do in Spark?

I know that I can put information in the dictionary dictionary, which is probably the best, but I do not want to write

  see data ["user"] = myUser ;   

Text "itemprop =" text ">

Thank you for looking at properties again

I found the user object within the spark view

  context.User  

Not an object, but what do I have with it :)


Comments