/// <summary> /// Gets the view for model. /// </summary> /// <param name="m">The post model</param> /// <returns>The view</returns> public static string GetView(this Piranha.Models.PostModel m) { if (m == null || m.Post == null) { return(string.Empty); } return(((Piranha.Models.Post)m.Post).View); }
/// <summary> /// Gets the view for model. /// </summary> /// <param name="m">The post model</param> /// <returns>The view</returns> public static string GetView(this Piranha.Models.PostModel m) { return(((Piranha.Models.Post)m.Post).View); }