Exemple #1
0
        /// <summary>
        /// 判断集团是否已经存在
        /// </summary>
        /// <param name="config"></param>
        /// <returns>配置id</returns>
        public ResultInfo <bool> HasExistsGroup(GroupModel model)
        {
            var result = new ResultInfo <bool> {
                Message = "", Result = false, Data = false
            };

            try
            {
                result.Data    = _dao.HasExistsGroup(model);
                result.Message = "执行成功";
                result.Result  = true;
            }
            catch (Exception ex)
            {
                result.Message = ex.ToString();
                result.Result  = false;
                LogHelper.LogWriterFromFilter(ex);
            }
            return(result);
        }