public IActionResult AddDailyAttendance(DailyAttendanceAddViewModel model) { var err = ""; try { AttendanceHelper attHelper = new AttendanceHelper(); attHelper.AddDetailsAttendanceByHand(model.EMP_ID, model.ATT_DT, int.Parse(model.ONN_01.Replace(":", "") + T_String.GetMilisecondRandom()), int.Parse(model.OFF_01.Replace(":", "") + T_String.GetMilisecondRandom())); err += attHelper.err; return(Json(err)); } catch (Exception ex) { err += ex.Message + " - " + ex.StackTrace; } return(Json(err)); }