public AccountController() { _logonBinder = new LogonBinder(); _logonViewModel = new LogonViewModel(); _viewFactory = new ViewFactory(); _logonView = _viewFactory.CreateView(); }
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(); } }); }