public string GetAssemblyKey(ControllerContext ctrlCtx)
{
string assemblyName = String.Empty;
var controller = ctrlCtx.Controller;
//if (!(controller is IAdminModule)) {
if (controller is IWidgetController) {
assemblyName = (controller as IWidgetController).AssemblyName;
} else {
if (controller.ViewData[CarrotViewEngineWidget.Key] != null) {
assemblyName = controller.ViewData[CarrotViewEngineWidget.Key].ToString();
}
}
//}
return assemblyName;
}