I try to check empty of ViewBag such as
@if (((IEnumerable<dynamic>)ViewBag.Episode).Count() > 0)
@if (Enumerable.Count(ViewBag.Episode) > 0)
@if (Enumerable.Any(ViewBag.Episode))
@if (ViewBag.Episode!= null)
It's not work. Please help, how to check empty or null.
Thankyou