bool IsDatabaseTablesPopulated()
        {
            bool hasAnyData = Regions.Any() && Cities.Any() && Channels.Any() && Sectors.Any() && Contacts.Any() &&
                              Customers.Any() && Plants.Any() && Products.Any() && Sales.Any();
            bool hasActualData = Sales.Any(s => s.SaleDate.Year == DateTime.Today.Year);

            return(hasAnyData && hasActualData);
        }
Пример #2
0
 private bool IsDatabaseTablesPopulated()
 {
     return(Regions.Any() && Cities.Any() && Channels.Any() && Sectors.Any() && Contacts.Any() &&
            Customers.Any() && Plants.Any() && Products.Any() && Sales.Any());
 }