I want to insert a condition in my view. The condition is based on information from the database. What is the best way to do this? I considered inserting that value into ViewBag
in controller or creating an additional property in the view model, but they are dirty ways and I would prefer to avoid them.
Thanks in advance.