public OBFModel(OBF Entity) { this.Number = Entity.Number; this.Unit = Entity.Unit; this.UnitPrice = Entity.UnitPrice; this.Description = Entity.Description; this.Id = Entity.Id; this.IsActive = Entity.IsActive; this.StokNumber = Entity.StokNumber; this.DescriptionForSupplier = Entity.DescriptionForSupplier; this.ParentId = Entity.ParentId; this.Childrens = CustomSaveableModelBase.GetModels <OBFModel, OBF>(Entity.Childrens); this.InserTime = Entity.InsertTime; this.CurrencyType = Entity.CurrencyType; //if (this.Childrens.Count != 0) //{ // this.UnitPrice = this.Childrens.OrderByDescending(p => p.InserTime).FirstOrDefault().UnitPrice; //} }
public Fare(CurrencyTypesEnum CurrencyType, double Amount) { this.CurrencyType = CurrencyType; this.Amount = Amount; }