public async Task <IActionResult> DeleteAccount([FromRoute] int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _accountsRepository.Delete(id); return(Ok(result)); }
public Task DeleteAccount(Guid accountId) { return(_accountsRepository.Delete(accountId)); }
public void DeleteAccount([FromRoute] long id) { repository.Delete(id); }
public Account Delete(Account account) { return(_accountRepository.Delete(account)); }