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