Esempio n. 1
0
        /// <summary>
        /// The theme account path.
        /// </summary>
        /// <param name="model">
        /// The model.
        /// </param>
        /// <param name="viewName">
        /// The view name.
        /// </param>
        /// <returns>
        /// The <see cref="string"/>.
        /// </returns>
        public static string ThemeAccountPath(this IMasterModel model, string viewName)
        {
            const string Path = "{0}Views/Account/{1}.cshtml";

            return(string.Format(Path, PathHelper.GetThemePath(model.Theme), viewName));
        }
Esempio n. 2
0
 /// <summary>
 /// The theme partial view path.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 /// <param name="viewName">
 /// The view name.
 /// </param>
 /// <returns>
 /// The <see cref="string"/>.
 /// </returns>
 public static string ThemePartialViewPath(this IMasterModel model, string viewName)
 {
     return(PathHelper.GetThemePartialViewPath(model, viewName));
 }