public ActionResult HR_WorkingDay_GetHour(int userid) { var db = new Timekeeping_TimeSSNDal(); var result = db.HR_WorkingDay_GetHour(userid); return(Content(JsonConvert.SerializeObject(new { result }))); }
public ActionResult HR_WorkingDay_GetHour(int userid) { var db = new Timekeeping_TimeSSNDal(); if (userid == 0) { userid = Global.CurrentUser.LoginUserId; } var result = db.HR_WorkingDay_GetHour(userid); return(Content(JsonConvert.SerializeObject(new { result }))); }