/// <summary> /// /// </summary> /// <param name="model"></param> /// <returns></returns> public static TimeSheetWorkShiftTemplateModel Create(TimeSheetWorkShiftTemplateModel model) { var entity = new hr_TimeSheetWorkShiftTemplate(); model.FillEntity(ref entity); return(new TimeSheetWorkShiftTemplateModel(hr_TimeSheetWorkShiftTemplateServices.Create(entity))); }
/// <summary> /// /// </summary> /// <param name="model"></param> /// <returns></returns> public static void Update(TimeSheetWorkShiftTemplateModel model) { var record = hr_TimeSheetWorkShiftTemplateServices.GetById(model.Id); if (record == null) { return; } //Edit data model.FillEntity(ref record); record.EditedDate = DateTime.Now; //update hr_TimeSheetWorkShiftTemplateServices.Update(record); }