public JsonResult ChangeDplModel([FromBody] ChangeItRequest <DplCode> request)
        {
            if (CssAppConfig.RunInTestMode)
            {
                var results = new CssCommandResult()
                {
                    Results = new List <CommandResponse>()
                    {
                        new CommandResponse("sample css action", "sample css response"),
                        new CommandResponse("sample css action", "sample css response")
                    }
                };
                return(new JsonResult(results));
            }
            Console.WriteLine($"TESTING: {request.NewCode.GetDeveloperCode()}, {request.NewCode.GetProjectCode()}, {request.NewCode.GetLenderCode()}");
            var response =
                ChangeItCapability.ChangeDplCode(request.File,
                                                 request.GetListName,
                                                 request.NewCode,
                                                 request.Note,
                                                 request.Credentials);

            Console.WriteLine(JsonConvert.SerializeObject(response));
            return(new JsonResult(response));
        }
示例#2
0
 public static bool SetCssEnvironmentValues()
 {
     return
         (ChangeItCapability.SetEnvironmentValues(CssUserName, CssUserPassword, CssHostname, CssAccount) &&
          FilterCapability.SetEnvironmentValues(CssUserName, CssUserPassword, CssHostname, CssAccount) &&
          MultiNoteCapability.SetEnvironmentValues(CssUserName, CssUserPassword, CssHostname, CssAccount));
 }
        public JsonResult ChangeAccountCodeModel([FromBody] ChangeItRequest <AccountCode> request)
        {
            if (CssAppConfig.RunInTestMode)
            {
                var results = new CssCommandResult()
                {
                    Results = new List <CommandResponse>()
                    {
                        new CommandResponse("sample css action", "sample css response"),
                        new CommandResponse("sample css action", "sample css response")
                    }
                };
                return(new JsonResult(results));
            }
            CssCommandResult response = ChangeItCapability.ChangeAccountCode(request.File, request.GetListName, request.NewCode, request.Note, request.Credentials);

            return(new JsonResult(response));
        }