public ActionResult DeleteBrand(Guid id) { try { var res = ApiUtil.DeleteBrand(id); return(RedirectToAction("ListBrand")); } catch (Exception ex) { return(RedirectToAction("Index", new RouteValueDictionary(new { controller = "ErrorHandler", action = "Index", data = ex.InnerException?.Message ?? ex.Message }))); } }