Example #1
0
        internal ApiResult AttachRollBackPlanToChangeRequest(RollBackPlan req)
        {
            ApiResult apiResult = new ApiResult();

            try
            {
                if (!req.IsValid())
                {
                    apiResult.SetFailuresAsStatusInResponseFields(req.StatusDesc);
                    return(apiResult);
                }

                req.Save();

                apiResult.PegPayID = "" + req.Id;
                apiResult.SetSuccessAsStatusInResponseFields();
                return(apiResult);
            }
            catch (Exception ex)
            {
                HandleError(nameof(SaveCompany), "EXCEPTION", ex.Message);
                apiResult.SetFailuresAsStatusInResponseFields(ex.Message);
            }
            return(apiResult);
        }
Example #2
0
        public void AttachRollBackPlanToChangeRequestTest()
        {
            ChangeRequestInterface api            = new CRSubSystemAPI();
            RollBackPlan           systemAffected = new RollBackPlan();

            systemAffected.ChangeRequestId     = "Test";
            systemAffected.RollBackPlanDetails = "Test";

            ApiResult result = api.AttachRollBackPlanToChangeRequest(systemAffected);

            Assert.AreEqual(Globals.SUCCESS_STATUS_TEXT, result.StatusDesc);
        }
Example #3
0
 public ApiResult AttachRollBackPlanToChangeRequest(RollBackPlan plan) => cRSubSystemAPI.AttachRollBackPlanToChangeRequest(plan);
 public ApiResult AttachRollBackPlanToChangeRequest(RollBackPlan plan) => bll.AttachRollBackPlanToChangeRequest(plan);