override async public System.Threading.Tasks.Task InsertPositionAsync(BusinessLayer.Position pos, string deviceLanguage, BusinessLayer.User user) { // Insert the new position in the DB DataAccessLayer.DAL_Bestellung dal_Bestellung = new DataAccessLayer.DAL_Bestellung(); BusinessLayer.Position temp = await dal_Bestellung.InsertPositionAsync(this, pos, deviceLanguage, user); // Update the Angebot fields after inserting the position if (temp == null) return; this.ID = temp.KpfID; this.Wert = temp.KpfWert; this.Nummer = temp.KpfNummer; if (this.Positions == null) this.Positions = new List<Position>(); this.Waehrung = pos.Waehrung; this.Positions.Add(temp); }