public virtual JsonResult EditConditionTrackWithDrawPost(DetailsConditionViewModel model)
        {
            var response = _agreementAndConditionService.UpdateConditionTrackWithDraw(model);

            return(Json(new
            {
                response.IsValid,
                response.ErrorMessage,
                NotificationType = response.IsValid ?
                                   NotificationTypeCode.Success :
                                   NotificationTypeCode.Error,
                NotificationMessage = response.IsValid ?
                                      Localization.GetText("TC.FundingInformation.Save.Message") :
                                      Localization.GetText("COMMON.ApplicationMappingException.Message"),
                Route = response.IsValid ?
                        Url.Action("Details",
                                   "Conditions",
                                   new
                {
                    area = "Agreements",
                    operationId = model.OperationId,
                    agreementId = model.Agreement.AgreementId,
                    conditionId = model.ConditionId,
                    conditionIndividualId = model.ConditionIndividuals[0].ConditionIndividualId
                }) :
                        Url.Action("Index",
                                   "Agreements",
                                   new
                {
                    area = "Agreements",
                    operationNumber = IDBContext.Current.Operation
                })
            }));
        }
        public virtual JsonResult DeleteUserComment(DetailsConditionViewModel model)
        {
            var response = _agreementAndConditionService.SaveConditionIndividual(model);

            return(Json(new
            {
                response.IsValid,
                response.ErrorMessage,
                NotificationType = response.IsValid ?
                                   NotificationTypeCode.Success :
                                   NotificationTypeCode.Error,
                NotificationMessage = response.IsValid ?
                                      Localization.GetText("TC.FundingInformation.Save.Message") :
                                      Localization.GetText("COMMON.ApplicationMappingException.Message"),
                Route = Url.Action("Index",
                                   "Agreements",
                                   new
                {
                    area = "Agreements",
                    operationNumber = IDBContext.Current.Operation
                })
            }));
        }