I have a strong typed View
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyPortal.Domain.Kite>" %>
In the view I do a foreach on a list that I placed on ViewData that has a different type
<%
foreach(var item in (List<MyPortal.Domain.Brand>)ViewData["BrandsList"]) { }
%>
Do I have to define the full path of the class: MyPortal.Domain.Brand or is there a better way of doing this. Just saying List<Brand>
does not work. Is there a way to inherit MyPortal.Domain from the View so that I can reference all classes under the domain without having to specify full path for each of them.