Esempio n. 1
0
 public static async Task UpdateLogs()
 {
     AllLogs = await APIHandler <List <Log> > .GetOne($"Logs/{AuthHandler.ActiveUser.Id}/{AuthHandler.SessionKey}");
 }
Esempio n. 2
0
 /// <summary>
 /// Deletes session key from db.
 /// </summary>
 /// <returns>Task, enables await.</returns>
 public static async Task Logout()
 {
     await APIHandler <Session> .DeleteOne($"Auth/DeleteSession");
 }
Esempio n. 3
0
 public static async Task UpdateInvoiceHasItems()
 {
     InvoiceHasItems = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("InvoicesHasItems");
 }
Esempio n. 4
0
 public static async Task UpdateSuppliers()
 {
     AllSuppliers = await APIHandler <Dictionary <int, Supplier> > .GetOne("Suppliers");
 }
Esempio n. 5
0
 /// <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");
 }
Esempio n. 6
0
 public static async Task UpdateInvoices()
 {
     AllInvoices = await APIHandler <Dictionary <int, Invoice> > .GetOne("Invoices");
 }
Esempio n. 7
0
 public static async Task UpdateCategories()
 {
     AllCategories = await APIHandler <Dictionary <int, Category> > .GetOne("Categories");
 }
Esempio n. 8
0
 /// <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");
 }
Esempio n. 9
0
 public static async Task UpdateItemsInStocks()
 {
     ItemsInStocks = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("ItemsInStocks");
 }
Esempio n. 10
0
 public static async Task UpdateStockHasItems()
 {
     StockHasItems = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("StockHasItems");
 }
Esempio n. 11
0
 /// <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");
 }
Esempio n. 12
0
 /// <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");
 }
Esempio n. 13
0
 public static async Task UpdateItems()
 {
     AllItems = await APIHandler <Dictionary <int, Item> > .GetOne("Items");
 }