Example #1
0
        /// <summary>
        /// 保存皮肤文件
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public Set SaveSkinModel(Skin model)
        {
            var set = new Set();

            if (model != null)
            {
                try
                {
                    if (model.Id == 0)
                    {
                        _skin.Add(model);
                    }
                    else
                    {
                        _skin.Update(model);
                    }
                    set.State = true;
                }
                catch
                {
                    set.State = false;
                }
            }
            return(set);
        }