Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static TimeSheetLogModel Create(TimeSheetLogModel model)
        {
            var entity = new hr_TimeSheetLog();

            model.FillEntity(ref entity);

            return(new TimeSheetLogModel(hr_TimeSheetLogServices.Create(entity)));
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static void Update(TimeSheetLogModel model)
        {
            var record = hr_TimeSheetLogServices.GetById(model.Id);

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

            //update
            hr_TimeSheetLogServices.Update(record);
        }