예제 #1
0
        public ActionResult Login(LoginCommand command)
        {
            var loginUser = _systemUserLogic.Login(command.UserName, command.Password);

            FormsAuthenticateUser(loginUser.SystemUserId + "_" + Guid.NewGuid());
            return(Json(new { Success = true }));
        }
        public AuthenticatedViewModel Login([FromBody] LoginUICommand command)
        {
            var authenticatedViewModel = _systemUserLogic.Login(command.Email, command.Password);

            return(authenticatedViewModel);
        }