// GET: Admin/Tag public ActionResult AddTag(Guid?id) { try { if (id == null) { return(View(new Tag())); } else { var tag = ApiUtil.GetTag(id.Value); return(View(tag.Result)); } } catch (Exception ex) { return(RedirectToAction("Index", new RouteValueDictionary(new { controller = "ErrorHandler", action = "Index", data = ex.InnerException?.Message ?? ex.Message }))); } }