public ActionResult SaveTag(Tag tag) { try { if (tag.Oid == Guid.Empty) { var res = ApiUtil.AddTag(tag).Result; } else { var res = ApiUtil.UpdateTag(tag).Result; } return(RedirectToAction("ListTag")); } catch (Exception ex) { return(RedirectToAction("Index", new RouteValueDictionary(new { controller = "ErrorHandler", action = "Index", data = ex.InnerException?.Message ?? ex.Message }))); } }