Exemplo n.º 1
0
        public int GetQtyByMonth(List <TrendForSupplierEntity> tfseList)
        {
            TrendForSupplierEntity tfse = new TrendForSupplierEntity();

            tfse = tfseList.FirstOrDefault();
            if (tfse != null)
            {
                return(tfse.requestQty);
            }
            return(0);
        }
Exemplo n.º 2
0
        public int GetCategoryCostByMonth(List <TrendForSupplierEntity> tfseList)
        {
            TrendForSupplierEntity tfse = new TrendForSupplierEntity();

            tfse = tfseList.FirstOrDefault();

            if (tfse != null)
            {
                return((int)tfse.categoryCost);
            }
            return(0);
        }