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