/// <summary> /// Stores the given login credentials to the backing data store /// </summary> /// <param name="loginCredentials">The login credentials to save</param> /// <returns>Returns a task that will finish once the save is complete</returns> public async Task SaveBaseListsAsync(EquipmentDataModel baseLists) { // Clear all entries mDbContext.Equipment.RemoveRange(mDbContext.Equipment); // Add new one mDbContext.Equipment.Add(baseLists); // Save changes await mDbContext.SaveChangesAsync(); }
/// <summary> /// Stores the given login credentials to the backing data store /// </summary> /// <param name="loginCredentials">The login credentials to save</param> /// <returns>Returns a task that will finish once the save is complete</returns> public async Task SaveBaseListsAsync(CompositeDataModel baseLists) { // Clear all entries mDbContext.Composite.RemoveRange(mDbContext.Composite); // Add new one mDbContext.Composite.Add(baseLists); // Save changes await mDbContext.SaveChangesAsync(); }