private void AddDiscToBase(AlohaService.ServiceDataContracts.Discount d, AlohaService.ServiceDataContracts.AirCompany arc) { var dres = AlohaFly.DBProvider.Client.CreateDiscount(d); foreach (var r in d.Ranges) { try { var rres = AlohaFly.DBProvider.Client.CreateDiscountRange(r); r.Id = rres.CreatedObjectId; AlohaFly.DBProvider.Client.AddRangeToDiscount(dres.CreatedObjectId, rres.CreatedObjectId); } catch { } } if (arc != null) { arc.DiscountId = dres.CreatedObjectId; var acres = AlohaFly.DBProvider.Client.UpdateAirCompany(arc); } }
public AirCopmanyVis(AlohaService.ServiceDataContracts.AirCompany Parent) : base() { base.Address = Parent.Address; }