示例#1
0
        public async Task <IActionResult> IndexAsync()
        {
            //测试接入登录

            var command = new AdminUserLoginCommand
            {
                Account  = "",
                Password = ""
            };

            //验证命令模型
            if (!command.IsVaild())
            {
                throw new Exception(command.GetErrors(""));
            }

            //登录
            var res = await adminLoginAppService.Login(command, CancellationToken.None);

            return(View());
        }