I'm aware that this is basic but then again I couldn't figure out answer for this one ...
I would like to send string and int value as one ViewData value to View
ViewData["TypeOfPaymentSelected"] = new { StringName = Enum.GetName(typeof(PaymentType), payment), IntValue = payment };
but I do not know how to cast it inside View.
If I'm still in controller I would simple access is as
varName.StringName
varName.IntValue
I know how to make ViewModel classes and cast it in View, I know I can send this as two ViewData values etc but I thought this can be done simpler and obvioulsy I lack basic C# knowledge