3 using Castle
.Igloo
.Attributes
;
4 using Igloo
.Clinic
.Domain
;
5 using Igloo
.Clinic
.Application
;
6 using Castle
.Igloo
.UI
.Web
;
8 namespace Igloo
.Clinic
.Web
.Views
10 public partial class Site
: MasterPage
12 private Doctor _doctor
= null;
13 private LoginController _loginController
= null;
15 [Inject(Name
= "doctor", Scope
= ScopeType
.Session
)]
18 set { _doctor = value; }
21 public LoginController LoginController
23 set { _loginController = value; }
26 protected void Page_Load(object sender
, EventArgs e
)
28 LiteralName
.Text
+= _doctor
.Name
;
31 protected void LinkButtonLogout_Click(object sender
, EventArgs e
)
33 _loginController
.LogOut();