Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/Administration/Views/DefaultViewPresenter.cs @ 5991

Last change on this file since 5991 was 4585, checked in by gschwarz, 14 years ago

#1198 Authentication implemented with GetDateTimeString only for User: Gerhard

File size: 713 bytes
RevLine 
[4476]1using System;
2using System.Collections.Generic;
3using System.Text;
4using Microsoft.Practices.ObjectBuilder;
5using Microsoft.Practices.CompositeWeb;
[4585]6using System.Security.Permissions;
[4476]7
8namespace OKB.Administration.Views
9{
10    public class DefaultViewPresenter : Presenter<IDefaultView>
11    {
12        private IAdministrationController _controller;
13
14        public DefaultViewPresenter([CreateNew] IAdministrationController controller)
15        {
16            this._controller = controller;
17        }
[4585]18        [PrincipalPermission(SecurityAction.Demand, Name = "Gerhard")]
[4478]19        public string GetDateTimeString()
20        {
21            return _controller.GetDateTimeString();
22        }
[4476]23    }
24}
Note: See TracBrowser for help on using the repository browser.