[Route("api/sensors/{id}/{date}/Measurements")]
public IEnumerable<Measurement> GetMeasurements(int id, DateTime date)//date == "11:01:2016 00:00:00"
{
return _unitOfWork.MeasurementRepository.Get(orderBy: e => e.Where(ex => ex.SensorId == id).Where(a => a.Time == date).OrderBy(tx => tx.Time));
//a.Time = 11:01:2016 00:00:00, ..., 11:01:2016 00:15:00, ...,11:01:2016 00:30:00, ...,11:01:2016 00:45:00, ...
}
I have to return all measurement of the searched day (DateTime date), but I don't know how to compare the two DateTimes without the Time...