public IActionResult LodgeParticipantComplaint([FromForm] DisputeTransactionDTO disputeTransactionDTO)
        {
            try
            {
                DisputeTransactionFund dt = new DisputeTransactionFund();
                if (disputeTransactionDTO != null)
                {
                    dt = new DisputeTransactionFund
                    {
                        Id = disputeTransactionDTO.Id,
                        OriginatorTypeId              = 3,
                        ExecutorTypeId                = 3,
                        OriginatorId                  = disputeTransactionDTO.OriginatorId,
                        ExecutorId                    = disputeTransactionDTO.ExecutorId,
                        DisputeActionId               = disputeTransactionDTO.DisputeActionId,
                        DisputeDetail                 = disputeTransactionDTO.DisputeDetail,
                        DisputeSettledBy              = 0,
                        DisputeSettlementStatus       = false,
                        DisputeSettlementTime         = DateTime.Now,
                        DisputeSettlementType         = disputeTransactionDTO.DisputeSettlementType,
                        DisputeSeverityId             = disputeTransactionDTO.DisputeSeverityId,
                        DisputeTitle                  = disputeTransactionDTO.DisputeTitle,
                        DisputeType                   = disputeTransactionDTO.DisputeType,
                        TransactionSettlementStatusId = 0,
                        ParticipantResponseText       = null,
                        ParticipantAction             = null,
                        CreatedOn   = DateTime.Now,
                        ModifiedOn  = DateTime.Now,
                        EntityState = EntityState.Added
                    };

                    _businessLayer.AddDisputeTransaction(dt);
                }
                return(RedirectToAction("Index", "Home"));
            }
            catch (Exception ex)
            {
                //return new JsonResult(new { HttpStatusCode = NotFound(HttpStatusCode.BadRequest), ex.Message });
                throw new Exception(ex.Message);
            }
        }
        public IActionResult ParticipantResponseToDispute([FromForm] DisputeTransactionDTO disputeTransactionDTO)
        {
            DisputeTransactionFund dt = new DisputeTransactionFund();

            if (disputeTransactionDTO != null)
            {
                dt = _businessLayer.GetDisputeTransactionById(disputeTransactionDTO.Id);

                dt.DisputeAction           = null;
                dt.DisputeSeverity         = null;
                dt.TransactionFund         = null;
                dt.ParticipantAction       = disputeTransactionDTO.ParticipantAction;
                dt.ParticipantResponseText = disputeTransactionDTO.ParticipantResponseText;
                dt.DisputeSettlementStatus = (disputeTransactionDTO.ParticipantAction == true ? true : false);
                dt.CreatedOn  = DateTime.Now;
                dt.ModifiedOn = DateTime.Now;

                dt.EntityState = EntityState.Modified;

                _businessLayer.UpdateDisputeTransaction(dt);
            }
            return(RedirectToAction("Index", "Home"));
        }