private void CloseCallRecord(int callId, bool success) { var status = success ? State.Completed : State.Failed; callRepository.UpdateState(callId, status.ToString()); }