using System; using System.Collections.Generic; using System.Text; using Microsoft.Practices.ObjectBuilder; using Microsoft.Practices.CompositeWeb; using System.Security.Permissions; namespace OKB.Administration.Views { public class DefaultViewPresenter : Presenter { private IAdministrationController _controller; public DefaultViewPresenter([CreateNew] IAdministrationController controller) { this._controller = controller; } [PrincipalPermission(SecurityAction.Demand, Name = "Gerhard")] public string GetDateTimeString() { return _controller.GetDateTimeString(); } } }