public List <PeriodicReport_Result> GetProductStock(int productId, DateTime startDate, DateTime endDate, int tenantId) { var db = new InventoryDb(); var stock = db.PeriodicReport(productId, startDate, endDate, tenantId).ToList(); return(stock); // return db.StockReport(productId, startDate, endDate).ToList(); }