Beispiel #1
0
        public async Task <IActionResult> ToggleAccountStatus([FromBody] AccountToggleViewModel accountToggleVm)
        {
            var result = await _accountRepository.AccountToggle(accountToggleVm);

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

            return(BadRequest());
        }
Beispiel #2
0
 public async Task <bool> AccountToggle(AccountToggleViewModel accountToggleVm)
 {
     return(await _accountRepository.AccountToggle(accountToggleVm));
 }
 public async Task AccountToggle(AccountToggleViewModel accountToggleVm)
 {
     await _accountRepository.AccountToggle(accountToggleVm);
 }