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

            model.FillEntity(ref entity);

            return(new TimeSheetWorkShiftModel(hr_TimeSheetWorkShiftServices.Create(entity)));
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static void Update(TimeSheetWorkShiftModel model)
        {
            var record = hr_TimeSheetWorkShiftServices.GetById(model.Id);

            if (record == null)
            {
                return;
            }
            //Edit data
            model.FillEntity(ref record);
            record.EditedDate = DateTime.Now;

            //update
            hr_TimeSheetWorkShiftServices.Update(record);
        }