Esempio n. 1
0
 public IHttpActionResult GetBillsInDateRange(DateTime startDate, DateTime endDate)
 {
     //return Ok(db.BillsRepository.Get(
     //    filter: b => b.billCreated >= startDate && b.billCreated <= endDate));
     return(Ok(billService.GetBillsByDatePeriod(startDate, endDate)));
 }
Esempio n. 2
0
 public IEnumerable <BillModel> GetBillsByDatePeriod(DateTime startDate, DateTime endDate)
 {
     return(billsService.GetBillsByDatePeriod(startDate, endDate));
 }