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