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); }
public bool CreateJobFromCSVImport(JobCSVData jobCSVData) { _jobCommands.ActiveUser = Models.ApiContext.ActiveUser; jobCSVData.FileContent = Convert.FromBase64String(jobCSVData.FileContentBase64); return(_jobCommands.CreateJobFromCSVImport(jobCSVData)); }