Exemplo n.º 1
0
        public int GetCountryCustomersTotal(string Country, DateTime FromDate, DateTime ToDate)
        {
            var northwind = new NorthwindEntities();
            int result    = northwind.CountryCustomers(Country, FromDate.ToString("yyyyMMdd"), ToDate.ToString("yyyyMMdd")).ToList().Count();

            return(result);
        }
Exemplo n.º 2
0
        public List <CountryCustomers_Result> GetCountryCustomers(string Country, DateTime FromDate, DateTime ToDate)
        {
            var northwind = new NorthwindEntities();
            var result    = northwind.CountryCustomers(Country, FromDate.ToString("yyyyMMdd"), ToDate.ToString("yyyyMMdd"));

            return(result.ToList());
        }