public List <LeaseDTO> GetAllLeases() { var activs = ActiveLeases.GetAll(); var inactvs = InactiveLeases.GetAll(); return(activs.Concat(inactvs).ToList()); }
public List <LeaseDTO> ActiveLeasesFor(DateTime date) { if (date == DateTime.MinValue) { return(new List <LeaseDTO>()); } var activs = ActiveLeases.GetAll() .Where(_ => _.IsActive(date)); var inactvs = InactiveLeases.GetAll() .Where(_ => _.IsActive(date)); return(activs.Concat(inactvs).ToList()); }