public ActionResult Index(String search) { ViewBag.birthdayToday = personDAO.FindBirthdayToday(); ViewBag.people = personDAO.FindByNameAndSurname(search).OrderBy(o => o.DaysToBirthday()).ToList(); ViewBag.search = search; return(View()); }
public ActionResult Index(String search) { ViewBag.birthdayToday = personDAO.FindBirthdayToday(); ViewBag.people = personDAO.FindByNameAndSurname(search).OrderBy(o => o.DaysToBirthday()).ToList(); ViewBag.search = search; return(View()); }