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))); }
public IEnumerable <BillModel> GetBillsByDatePeriod(DateTime startDate, DateTime endDate) { return(billsService.GetBillsByDatePeriod(startDate, endDate)); }