Example #1
0
 public bool addClockLog(Clocklog clockLog)
 {
     try
     {
         _clockLogRepository.Add(clockLog);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
 public ActionResult writeClockLog(Clocklog clockLog)
 {
     clockLog.clocklogTime = DateTime.Now;
     clockLog.userId       = loginUser.userId;
     if (_clockLogService.addClockLog(clockLog) == true)
     {
         JsonResult["boo_success"] = true;
         return(Json(JsonResult));
     }
     else
     {
         JsonResult["boo_success"] = false;
         return(Json(JsonResult));
     }
 }