public void SaveManualTimeLog(ManualTimeLogModel model) { this._repoEmployeeAttendance.Insert(new ta_EmployeeAttendance() { employeeId = model.employeeId, timeLogType = model.logType, workDate = model.timeLog.Date, timeLog = model.timeLog, remarks = model.remarks, updatedBy = this.GetCurrentUserId(), }); this._unitOfWork.Save(); }
public ActionResult AjaxSaveManualTimeLog(ManualTimeLogModel model) { try { if (ModelState.IsValid) { this._attendanceService.SaveManualTimeLog(model); } } catch (Exception ex) { this.AddModelError(ex); } return(this.JsonResultWithModelStateInfo(successMsg: "New Time Log has been save.")); }