public async Task <IActionResult> Index() { try { return(View(await _repository.GetTableAsync())); } catch (Exception ex) { ViewBag.ErrorTitle = null; return(View("Error")); } }