public async Task <IActionResult> EndAppealProcess(int masterId)
        {
            var appeal = await _repository.GetFlowMaster(masterId, true);

            if (appeal == null)
            {
                return(NotFound());
            }

            _repository.RemoveMaster(appeal);
            await _unitOfWork.CompleteAsync();

            return(Ok(masterId));
        }