public async Task <IActionResult> Login([FromBody] LoginDto model, [FromServices] IActionServiceAsync <ILoginAccountAction> service) { var response = await service.RunBizActionAsync <string>(model); return(Ok(response)); }
public async Task <IActionResult> Register([FromBody] AccountDto model, [FromServices] IActionServiceAsync <IRegisterAccountAction> service) { var result = await service.RunBizActionAsync <bool>(model); return(Ok(result)); }