Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1198 Authentication implemented with GetDateTimeString only for User: Gerhard

File size: 713 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using Microsoft.Practices.ObjectBuilder;
5using Microsoft.Practices.CompositeWeb;
6using System.Security.Permissions;
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        }
18        [PrincipalPermission(SecurityAction.Demand, Name = "Gerhard")]
19        public string GetDateTimeString()
20        {
21            return _controller.GetDateTimeString();
22        }
23    }
24}
Note: See TracBrowser for help on using the repository browser.