public ActionResult Save(YinLiuTagViewModel model)
        {
            var description = "";
            var entity      = new YinLiuTagEntity();

            if (model.Id > 0)//编辑
            {
                description = "保存标签";
                entity      = _yinLiuTagBll.Value.Get(model.Id);
                entity.Name = model.Name;
            }
            else//添加
            {
                description = "添加标签";
                entity.Name = model.Name;
                entity.Type = PublicEnum.YinLiuTagTypeEnum.System;
            }
            var result = _yinLiuTagBll.Value.Save(entity);

            if (result)
            {
                return(LayerHelper.SuccessAndClose("", $"{description}成功"));
            }
            return(LayerHelper.Warn($"{description}失败"));
        }
 public ActionResult Edit(YinLiuTagViewModel model)
 {
     if (model.Id > 0)
     {
         model = _yinLiuTagBll.Value.GetView(model.Id);
     }
     return(View(model));
 }