forum

Home / DeveloperSection / Forums / How to use ternary operator in Razor

How to use ternary operator in Razor

Sachin Singh 2617 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.



Updated on 26-Mar-2016

Can you answer this question?


Answer

1 Answers

Liked By