コード例 #1
0
        public async Task <IActionResult> ToggleAccountStatus([FromBody] AccountToggleViewModel accountToggleVm)
        {
            var result = await _accountService.AccountToggle(accountToggleVm);

            if (result)
            {
                return(Ok());
            }

            return(BadRequest());
        }
コード例 #2
0
        public async Task <IActionResult> ToggleAccountStatus(AccountToggleViewModel accountToggleVm)
        {
            await _accountService.AccountToggle(accountToggleVm);

            return(Ok());
        }