Update: Configuration Framework +CallerMemberName
Simplified creation of configuration modules; Scope is obtained from abstract, Property names become keys (via CallerMemberName); Simple generic Get/Set methods are used; Helpers for Obsfucation and Json are available.
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Disco.Web
|
||||
}
|
||||
public static MvcHtmlString OrganisationLogoUrl(this UrlHelper urlHelper, int Width = 256, int Height = 256)
|
||||
{
|
||||
var config = new Disco.Data.Configuration.ConfigurationContext(null);
|
||||
var config = new Disco.Data.Configuration.SystemConfiguration(null);
|
||||
return new MvcHtmlString(urlHelper.Action(MVC.API.System.OrganisationLogo(Width, Height, config.OrganisationLogoHash)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user