private ObservableCollection <WarehouseLocationCode> BuildWarehouseLocationCodeDropDown() { List <WarehouseLocationCode> list = new List <WarehouseLocationCode>(); list = _serviceAgent.GetWarehouseLocationCodesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList(); list.Add(new WarehouseLocationCode()); list.Sort((x, y) => string.Compare(x.Code, y.Code)); return(new ObservableCollection <WarehouseLocationCode>(list)); }
private ObservableCollection <WarehouseLocationCode> GetWarehouseLocationCodes() { return(new ObservableCollection <WarehouseLocationCode>(_serviceAgent.GetWarehouseLocationCodesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList())); }