예제 #1
0
        public bool CreateJobFromCSVImport(JobCSVData jobCSVData)
        {
            var content = RestClient.Execute(
                HttpRestClient.RestAuthRequest(Method.POST, string.Format("{0}/{1}", RouteSuffix, "CreateJobFromCSVImport"), ActiveUser)
                .AddObject(jobCSVData)).Content;
            var result = JsonConvert.DeserializeObject <ApiResult <bool> >(content).Results?.FirstOrDefault();

            return(result.HasValue ? (bool)result : false);
        }
예제 #2
0
 public bool CreateJobFromCSVImport(JobCSVData jobCSVData)
 {
     _jobCommands.ActiveUser = Models.ApiContext.ActiveUser;
     jobCSVData.FileContent  = Convert.FromBase64String(jobCSVData.FileContentBase64);
     return(_jobCommands.CreateJobFromCSVImport(jobCSVData));
 }