예제 #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));
        }