Ejemplo n.º 1
0
        public IActionResult Index()
        {
            Task1Model model = new Task1Model();

            model.Families = this.task1Service.GetAllFamilies();
            model.Persons  = this.task1Service.GetAllPersons();

            return(View(model));
        }
Ejemplo n.º 2
0
        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));
        }