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));
 }
Esempio n. 4
0
 public static async Task <ServerResponse <User, UserErrorMessage> > Login(string email, string password)
 {
     return(await FetchApi.PostAsync <User, UserErrorMessage>("user/login", new { email, password }));
 }
Esempio n. 5
0
 public static async Task <ServerResponse <object, UserErrorMessage> > CreateUser(User user)
 {
     return(await FetchApi.PostAsync <UserErrorMessage>("user", user));
 }
Esempio n. 6
0
 public static async Task <ServerResponse <object, ComboErrorMessage> > CreateCombo(Combo combo)
 {
     return(await FetchApi.PostAsync <ComboErrorMessage>("combos", combo));
 }