예제 #1
0
 public string UpdateItem(String apiUrl, string content, int id)
 {
     return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "PUT", content));
 }
예제 #2
0
 public string DeleteItem(String apiUrl, int id)
 {
     return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "DELETE"));
 }
예제 #3
0
 public string GetItem(String apiUrl, int id)
 {
     return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "GET"));
 }
예제 #4
0
 public string PostItem(String apiUrl, string content)
 {
     return(BaseClass.CallApi(apiUrl + connectTo, "POST", content));
 }
예제 #5
0
 public string GetItems(String apiUrl)
 {
     return(BaseClass.CallApi(apiUrl + connectTo, "GET"));
 }
예제 #6
0
 public string MarkDeleted(String apiUrl, int id)
 {
     return(BaseClass.CallApi(apiUrl + connectTo + "/markdeleted/" + id, "DELETE"));
 }
예제 #7
0
 public string AcceptOrderPayment(String apiUrl, int id)
 {
     return(BaseClass.CallApi(apiUrl + connectTo + "AcceptPayment/?id=" + id, "POST"));
 }
예제 #8
0
 public string ChangeOrder(String apiUrl, string content, int id)
 {
     return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "PUT", content));
 }
예제 #9
0
 public string GetPendingOrders(String apiUrl)
 {
     return(BaseClass.CallApi(apiUrl + connectTo + "/getpending", "GET"));
 }