コード例 #1
0
        public async Task <ActionResult <IEnumerable <SecurityUpdateViewModel> > > GetSecurityUpdates()
        {
            IEnumerable <SecurityUpdateViewModel> result = await service.ObterTodos();

            return(Ok(result));
        }
コード例 #2
0
        // GET: SecurityUpdates
        public async Task <IActionResult> Index()
        {
            var result = await service.ObterTodos();

            return(View(result));
        }