public IEnumerable <BirthdayPerson> BirthdayToday()

        {
            DateTime today = DateTime.Today;

            return(_repository.ReadAll().Where(Birthdayperson => Birthdayperson.Birthdate.Day == today.Day && Birthdayperson.Birthdate.Month == today.Month).ToList());
        }
Esempio n. 2
0
 public IEnumerable <BirthdayPerson> GetAllPerson()
 {
     return(_repository.ReadAll());
 }