private ObservableCollection <WarehouseLocationType> BuildWarehouseLocationTypeDropDown() { List <WarehouseLocationType> list = new List <WarehouseLocationType>(); list = _serviceAgent.GetWarehouseLocationTypesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList(); list.Add(new WarehouseLocationType()); list.Sort((x, y) => string.Compare(x.Type, y.Type)); return(new ObservableCollection <WarehouseLocationType>(list)); }
private ObservableCollection <WarehouseLocationType> GetWarehouseLocationTypes() { return(new ObservableCollection <WarehouseLocationType>(_serviceAgent.GetWarehouseLocationTypesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList())); }