public List <ItemMovimentoStockDTO> GetAllProductToInventoryList(string pWarehouseID, string pFilial, string pFamily, int pLoteID, int pSerialID, int pSizeID) { StockInfoDTO dto = new StockInfoDTO(); dto.ArmazemID = Convert.ToInt32(pWarehouseID); dto.DesignacaoArtigo = string.Empty; dto.Filial = pFilial; var product = new ArtigoDTO(); product.LoteID = pLoteID; product.DimesaoID = pSizeID; product.SerialNumberID = pSerialID; product.SemelhanteID = -1; product.Categoria = pFamily; product.Utilizador = string.Empty; dto.Product = product; if (dto.ArmazemID > 0) { return(daoStock.GetToInventory(dto)); } else { return(new List <ItemMovimentoStockDTO>()); } }