public static async Task <ServerResponse <object, OrderErrorMessage> > RefuseOrder(int orderID, ConfirmOrderDTO data) { return(await FetchApi.PostAsync <OrderErrorMessage>($"orders/{orderID}/refuse", data)); }
public static async Task <ServerResponse <object, OrderErrorMessage> > CreateOrder(CreateOrderDTO order) { return(await FetchApi.PostAsync <OrderErrorMessage>("orders", order)); }
public static async Task <ServerResponse <object, CatalogErrorMessage> > CreateCatalog(Catalog catalog) { return(await FetchApi.PostAsync <CatalogErrorMessage>("catalogs", catalog)); }
public static async Task <ServerResponse <User, UserErrorMessage> > Login(string email, string password) { return(await FetchApi.PostAsync <User, UserErrorMessage>("user/login", new { email, password })); }
public static async Task <ServerResponse <object, UserErrorMessage> > CreateUser(User user) { return(await FetchApi.PostAsync <UserErrorMessage>("user", user)); }
public static async Task <ServerResponse <object, ComboErrorMessage> > CreateCombo(Combo combo) { return(await FetchApi.PostAsync <ComboErrorMessage>("combos", combo)); }