public static MvcHtmlString PartialHelper(this HtmlHelper helper, Tenant currentTenant, string type, object model, string defaultLocation)
        {
            IPathService pathService = DependencyResolver.Current.GetService <IPathService>();
            string       location    = null;

            if (currentTenant != null && pathService != null)
            {
                location = pathService.GetContentLocation(currentTenant.Id.ToString(), type);
            }
            if (location == null)
            {
                location = defaultLocation;
            }
            return(helper.Partial(location, model));
        }
        public static string StyleBundle(this UrlHelper helper, Tenant currentTenant, string type, string defaultLocation)
        {
            IPathService pathService = DependencyResolver.Current.GetService <IPathService>();
            string       location;

            if (currentTenant == null || pathService == null)
            {
                return(defaultLocation);
            }
            location = pathService.GetContentLocation(currentTenant.Id.ToString(), type);
            if (location == null)
            {
                return(defaultLocation);
            }
            return(helper.Content(location));
        }