public void AddHoliday(BaseUserInfo userInfo, string holiday, bool checkExists = true)
        {
            var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterDb(userInfo, parameter, (dbHelper) =>
            {
                var manager = new BaseHolidaysManager(dbHelper, userInfo);
                manager.AddHoliday(holiday, checkExists);
            });
        }
        public List <BaseHolidaysEntity> GetHolidaysList(BaseUserInfo userInfo, string where)
        {
            List <BaseHolidaysEntity> result = null;

            var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterDb(userInfo, parameter, (dbHelper) =>
            {
                var manager = new BaseHolidaysManager(dbHelper, userInfo);
                result      = manager.GetList <BaseHolidaysEntity>(where);
            });
            return(result);
        }
        public int DeleteHoliday(BaseUserInfo userInfo, string holiday)
        {
            int result = 0;

            var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterDb(userInfo, parameter, (dbHelper) =>
            {
                var manager = new BaseHolidaysManager(dbHelper, userInfo);
                result      = manager.Delete(new KeyValuePair <string, object>(BaseHolidaysEntity.FieldHoliday, holiday));
            });

            return(result);
        }