常用方法
常用方法
常用方法
常用方法
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 }))); } }