Пример #1
0
 public static async Task UpdateLogs()
 {
     AllLogs = await APIHandler <List <Log> > .GetOne($"Logs/{AuthHandler.ActiveUser.Id}/{AuthHandler.SessionKey}");
 }
Пример #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");
 }
Пример #3
0
 public static async Task UpdateInvoiceHasItems()
 {
     InvoiceHasItems = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("InvoicesHasItems");
 }
Пример #4
0
 public static async Task UpdateSuppliers()
 {
     AllSuppliers = await APIHandler <Dictionary <int, Supplier> > .GetOne("Suppliers");
 }
Пример #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");
 }
Пример #6
0
 public static async Task UpdateInvoices()
 {
     AllInvoices = await APIHandler <Dictionary <int, Invoice> > .GetOne("Invoices");
 }
Пример #7
0
 public static async Task UpdateCategories()
 {
     AllCategories = await APIHandler <Dictionary <int, Category> > .GetOne("Categories");
 }
Пример #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");
 }
Пример #9
0
 public static async Task UpdateItemsInStocks()
 {
     ItemsInStocks = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("ItemsInStocks");
 }
Пример #10
0
 public static async Task UpdateStockHasItems()
 {
     StockHasItems = await APIHandler <Dictionary <int, Dictionary <int, int> > > .GetOne("StockHasItems");
 }
Пример #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");
 }
Пример #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");
 }
Пример #13
0
 public static async Task UpdateItems()
 {
     AllItems = await APIHandler <Dictionary <int, Item> > .GetOne("Items");
 }