public IActionResult Delete(int id) { var checkingAccount = _checkingAccountService.GetById(id); if (checkingAccount == null) { return(NotFound()); } _checkingAccountService.Delete(checkingAccount); return(NoContent()); }
public IActionResult Delete(int id) { var checkingAccount = _checkingAccountService.GetById(id); if (checkingAccount == null) { return(NotFound()); } _checkingAccountService.Delete(checkingAccount); return(NoContent()); }