Esempio n. 1
0
 public AccountController()
 {
     _logonBinder = new LogonBinder();
     _logonViewModel = new LogonViewModel();
     _viewFactory = new ViewFactory();
     _logonView = _viewFactory.CreateView();
 }
Esempio n. 2
0
 public RouteTable()
 {
     _methodExecuteDictionary.Add("logon", (string verb) =>
     {
         var controller = _controllerFactory.CreateAccountController();
         if (verb.Equals("POST",StringComparison.InvariantCultureIgnoreCase))
         {
             LogonBinder _logonBinder = new LogonBinder();
             _logonBinder.BindLogonViewModel(_httpContext.Request);
             controller.Logon();
         }
     });
 }