public IActionResult Delete(int id) { Transfer transfer = transferManager.Get(id); if (transfer == null) { return(NotFound("Transfer couldn't be found")); } if (transferManager.Delete(transfer) == 1) { return(Ok(true)); } else { return(BadRequest(false)); } }