AspNet MVC ViewData Error: InvalidOperationException: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has key 'Type'



Question: How do you resolve the error: InvalidOperationException: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has key 'Type' in MVC asp.net 6 View?