/// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static AnnualLeaveConfigureModel Create(AnnualLeaveConfigureModel model)
        {
            var entity = new hr_AnnualLeaveConfigure();

            // fill data to entity
            model.FillEntity(ref entity);
            return(new AnnualLeaveConfigureModel(hr_AnnualLeaveConfigureServices.Create(entity)));
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static AnnualLeaveConfigureModel Update(AnnualLeaveConfigureModel model)
        {
            var entity = hr_AnnualLeaveConfigureServices.GetById(model.Id);

            if (entity == null)
            {
                return(null);
            }
            // fill data to entity
            model.FillEntity(ref entity);
            return(new AnnualLeaveConfigureModel(hr_AnnualLeaveConfigureServices.Update(entity)));
        }