public static YogaDicItem ToEntity(ViewYogaDicItem model)
        {
            YogaDicItem item = new YogaDicItem();

            item.ID         = model.ID;
            item.DicId      = model.DicId;
            item.ItemName   = model.ItemName;
            item.ItemValue  = model.ItemValue;
            item.SortId     = model.SortId;
            item.IsUse      = model.IsUse == true?1:0;
            item.IsDelete   = model.IsDelete == true?1:0;
            item.CreateTime = model.CreateTime;

            return(item);
        }
        public static ViewYogaDicItem ToViewModel(YogaDicItem model)
        {
            if (model == null)
            {
                return(null);
            }

            ViewYogaDicItem item = new ViewYogaDicItem();

            item.ID         = model.ID;
            item.DicId      = model.DicId;
            item.ItemName   = model.ItemName;
            item.ItemValue  = model.ItemValue;
            item.SortId     = model.SortId;
            item.IsUse      = model.IsUse == 1 ? true : false;;
            item.IsDelete   = model.IsDelete == 1 ? true : false;
            item.CreateTime = model.CreateTime;

            return(item);
        }