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); }