コード例 #1
0
        public IActionResult Index()
        {
            Task1Model model = new Task1Model();

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

            return(View(model));
        }
コード例 #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));
        }