예제 #1
0
        public async Task <ActionResult> Index()
        {
            try
            {
                var pacientes = await _service.GetAsync();

                return(View("Index", pacientes));
            }
            catch (Exception e)
            {
                return(View(new ErrorViewModel {
                    RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier
                }));
            }
        }