public IActionResult Index() { Task1Model model = new Task1Model(); model.Families = this.task1Service.GetAllFamilies(); model.Persons = this.task1Service.GetAllPersons(); return(View(model)); }
public IActionResult GetAllOverThirty() { Task1Model model = new Task1Model(); model.Families = this.task1Service.GetAllFamilies(); model.Persons = this.task1Service.GetAllPersons(); model.OlderThanThirty = this.task1Service.GetOlderThanThirty(); return(View("Index", model)); }