Exemplo n.º 1
0
 public JobDestination PutJobDestination(JobDestination jobDestination)
 {
     _jobCommands.ActiveUser = Models.ApiContext.ActiveUser;
     return(_jobCommands.PutJobDestination(jobDestination));
 }
Exemplo n.º 2
0
 public JobDestination PutJobDestination(JobDestination jobDestination)
 {
     return(JsonConvert.DeserializeObject <ApiResult <JobDestination> >(RestClient.Execute(
                                                                            HttpRestClient.RestAuthRequest(Method.PUT, string.Format("{0}/{1}", RouteSuffix, "JobDestination"), ActiveUser).AddObject(jobDestination)).Content).Results?.FirstOrDefault());
 }