public static string GetEmbeddedViewPath(this HtmlHelper html, string viewPath, string assembly) { return(EmbeddedViewPath.Create(viewPath, assembly)); }
/// <summary> /// Returns the embedded view path for the model specified or an empty string if the embedded view attribute was not found /// </summary> /// <param name="a"></param> /// <returns></returns> public static string GetEmbeddedViewPath(EmbeddedViewAttribute a) { return(a == null ? string.Empty : EmbeddedViewPath.Create(string.Concat(a.CompiledViewName, ",", a.AssemblyName))); }