public ActionResult ListProduct() { try { var productList = ApiUtil.GetProductList().Result; return(View(productList)); } catch (Exception ex) { return(RedirectToAction("Index", new RouteValueDictionary(new { controller = "ErrorHandler", action = "Index", data = ex.InnerException?.Message ?? ex.Message }))); } }