public FinanceResponse Cancel(long id) { var header = service.FindHeader(id); if (header == null) { throw new FinanceException(FinanceResult.RECORD_NOT_EXIST); } service.Cancel(id); logService.Write(Operation.Cancel, header.word + "-" + header.no); return(CreateResponse(FinanceResult.SUCCESS)); }