void InitializeInRuntime() { Operations = new List <Operation>(); Operations = OperationBll.GetAllList(); Movements = new List <Movement>(); foreach (var item in Operations) { var movements = new Movement { Status = item.Store.Status.Name, Name = item.Name, Surname = item.Surname, Model = item.Store.Model.Name, SerialNumber = item.Store.SerialNumber, Description = item.Description, DeviceType = item.Store.Model.DeviceType.Name, InventoryNumber = item.Store.InventoryNumber, OperationType = item.OperationType.Name, OperationTime = item.OperationTime, Location = item.Location.Name, Company = item.Company.Name }; Movements.Add(movements); } }
void InitializeInRuntime() { Operations = new List <Operation>(); Operations = OperationBll.GetAllList(x => x.Guncel); Updates = new List <Update>(); foreach (var item in Operations) { var update = new Update() { Status = item.Store.Status.Name, Name = item.Name, Surname = item.Surname, Model = item.Store.Model.Name, SerialNumber = item.Store.SerialNumber, Description = item.Description, DeviceType = item.Store.Model.DeviceType.Name, InventoryNumber = item.Store.InventoryNumber, WarrantyStart = item.Store.WarrantyStart, Location = item.Location.Name, Company = item.Company.Name }; Updates.Add(update); } }