private ObservableCollection <WarehouseCode> BuildWarehouseCodeDropDown() { List <WarehouseCode> list = new List <WarehouseCode>(); list = _serviceAgent.GetWarehouseCodesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList(); list.Add(new WarehouseCode()); list.Sort((x, y) => string.Compare(x.Code, y.Code)); return(new ObservableCollection <WarehouseCode>(list)); }
private ObservableCollection <WarehouseCode> GetWarehouseCodes() { return(new ObservableCollection <WarehouseCode>(_serviceAgent.GetWarehouseCodesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList())); }