public IList <Appointment> GetList() { return(_appointmentDal.GetList().Where(x => x.Status == true).ToList()); }
public List <Appointment> GetList(Expression <Func <Appointment, bool> > filter = null) { var appointments = appointmentDal.GetList(filter); return(appointments); }