public string UpdateItem(String apiUrl, string content, int id) { return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "PUT", content)); }
public string DeleteItem(String apiUrl, int id) { return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "DELETE")); }
public string GetItem(String apiUrl, int id) { return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "GET")); }
public string PostItem(String apiUrl, string content) { return(BaseClass.CallApi(apiUrl + connectTo, "POST", content)); }
public string GetItems(String apiUrl) { return(BaseClass.CallApi(apiUrl + connectTo, "GET")); }
public string MarkDeleted(String apiUrl, int id) { return(BaseClass.CallApi(apiUrl + connectTo + "/markdeleted/" + id, "DELETE")); }
public string AcceptOrderPayment(String apiUrl, int id) { return(BaseClass.CallApi(apiUrl + connectTo + "AcceptPayment/?id=" + id, "POST")); }
public string ChangeOrder(String apiUrl, string content, int id) { return(BaseClass.CallApi(apiUrl + connectTo + "?id=" + id, "PUT", content)); }
public string GetPendingOrders(String apiUrl) { return(BaseClass.CallApi(apiUrl + connectTo + "/getpending", "GET")); }