GetLatestRecords() public method

public GetLatestRecords ( byte operatorCode, string name, System.DateTime startDate, System.DateTime endDate ) : IEnumerable
operatorCode byte
name string
startDate System.DateTime
endDate System.DateTime
return IEnumerable
コード例 #1
0
 public IEnumerable<PPMRecord> Get(byte? operatorCode, string name, DateTime? startDate = null, DateTime? endDate = null)
 {
     PPMDataRepository repo = new PPMDataRepository();
     if (startDate.HasValue && endDate.HasValue)
     {
         return repo.GetLatestRecords(operatorCode, name, startDate.Value, endDate.Value);
     }
     else
     {
         return new[] { repo.GetLatestRecord(operatorCode, name) };
     }
 }