public static async Task UpdateLogs() { AllLogs = await APIHandler <List <Log> > .GetOne($"Logs/{AuthHandler.ActiveUser.Id}/{AuthHandler.SessionKey}"); }
/// <summary> /// Deletes session key from db. /// </summary> /// <returns>Task, enables await.</returns> public static async Task Logout() { await APIHandler <Session> .DeleteOne($"Auth/DeleteSession"); }
public static async Task UpdateInvoiceHasItems() { InvoiceHasItems = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("InvoicesHasItems"); }
public static async Task UpdateSuppliers() { AllSuppliers = await APIHandler <Dictionary <int, Supplier> > .GetOne("Suppliers"); }
/// <summary> /// A method used to update the dictionary of roles using the API /// </summary> /// <returns></returns> public static async Task UpdateRoles() { AllRoles = await APIHandler <Dictionary <int, Role> > .GetOne("Roles"); }
public static async Task UpdateInvoices() { AllInvoices = await APIHandler <Dictionary <int, Invoice> > .GetOne("Invoices"); }
public static async Task UpdateCategories() { AllCategories = await APIHandler <Dictionary <int, Category> > .GetOne("Categories"); }
/// <summary> /// A method used to update the dictionary of salaries using the API /// </summary> /// <returns></returns> public static async Task UpdateSalaries() { AllSalaries = await APIHandler <Dictionary <int, Salary> > .GetOne("Salaries"); }
public static async Task UpdateItemsInStocks() { ItemsInStocks = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("ItemsInStocks"); }
public static async Task UpdateStockHasItems() { StockHasItems = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("StockHasItems"); }
/// <summary> /// A method used to update the dictionary of users using the API /// </summary> /// <returns></returns> public static async Task UpdateUsers() { AllUsers = await APIHandler <Dictionary <int, User> > .GetOne("Users"); }
/// <summary> /// A method used to update the dictionary of stores using the API /// </summary> /// <returns></returns> public static async Task UpdateStore() { AllStores = await APIHandler <Dictionary <int, Store> > .GetOne("Stores"); }
public static async Task UpdateItems() { AllItems = await APIHandler <Dictionary <int, Item> > .GetOne("Items"); }