if (NopContext.Current.User == null)
{
//do stuf
}
Is this a recommended way to check if a user is authenticated?
I WAS using:
if (HttpContext.Current.User.IsAuthenticated)
{
//do stuf
}
I know they both work, but are the any advantages so using NopContext? Or is first chunk of code essentially a wrapper for the second?
Thanks. I LOVE nopCommerce, BTW.