public async Task <IActionResult> ToggleAccountStatus([FromBody] AccountToggleViewModel accountToggleVm) { var result = await _accountRepository.AccountToggle(accountToggleVm); if (result) { return(Ok()); } return(BadRequest()); }
public async Task <bool> AccountToggle(AccountToggleViewModel accountToggleVm) { return(await _accountRepository.AccountToggle(accountToggleVm)); }
public async Task AccountToggle(AccountToggleViewModel accountToggleVm) { await _accountRepository.AccountToggle(accountToggleVm); }