Users Pricing

forum

home / developersection / forums / how to use ternary operator in razor

How to use ternary operator in Razor

Sachin Singh 3104 26 Mar 2016
Hi Everyone,

I have a view and i want to use ternary operator on view with the folliowing condition:
I want to check authenticity of the user if they are authenticate then doing some other task until unless doing other task with the help of User.Identity.IsAuthenticated .
Can anyone help
Thank you.



Sachin Singh

Other


1 Answers