コード例 #1
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();
 }
コード例 #2
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;
 }
コード例 #3
0
 public ActionResult CountryCustomers(string Country, DateTime FromDate, DateTime ToDate)
 {
     var northwind = new NorthwindEntities();
     var result = northwind.CountryCustomers(Country, FromDate.ToString("yyyyMMdd"), ToDate.ToString("yyyyMMdd"));
     return Json(result, JsonRequestBehavior.AllowGet);
 }