コード例 #1
0
        public async Task <IActionResult> Login([FromBody] LoginDto model, [FromServices] IActionServiceAsync <ILoginAccountAction> service)
        {
            var response = await service.RunBizActionAsync <string>(model);

            return(Ok(response));
        }
コード例 #2
0
        public async Task <IActionResult> Register([FromBody] AccountDto model, [FromServices] IActionServiceAsync <IRegisterAccountAction> service)
        {
            var result = await service.RunBizActionAsync <bool>(model);

            return(Ok(result));
        }