public static async Task <ServerResponse <object, OrderErrorMessage> > UpdateOrder(int orderID, Order order) { return(await FetchApi.PutAsync <OrderErrorMessage>($"orders/{orderID}", order)); }
public static async Task <ServerResponse <object, UserErrorMessage> > UpdateUser(int userID, User user) { return(await FetchApi.PutAsync <UserErrorMessage>("user/" + userID, user)); }
public static async Task <ServerResponse <object, CatalogErrorMessage> > UpdateCatalog(int catalogID, Catalog catalog) { return(await FetchApi.PutAsync <CatalogErrorMessage>("catalogs/" + catalogID, catalog)); }
public static async Task <ServerResponse <object, ComboErrorMessage> > UpdateCombo(int comboID, object combo) { return(await FetchApi.PutAsync <ComboErrorMessage>("combos/" + comboID, combo)); }