public ActionResult SearchClockIns(string StartDate, string EndDate) { try { AssociateHoursWorked objACH = new AssociateHoursWorked(StartDate, EndDate, Associate.AssociateID); return(Json(objACH)); } catch { return(Json("0")); } }
public ActionResult SearchClockInsByID(string StartDate, string EndDate, int AssociateID) { try { //AHDDManagerClass.AssociateClockInHistories objACH = new AHDDManagerClass.AssociateClockInHistories(); AssociateHoursWorked objACH = new AssociateHoursWorked(StartDate, EndDate, AssociateID); //var ret = objACH.GetAllClockinsUnfiltered(StartDate, EndDate, AssociateID); return(Json(objACH)); } catch { return(Json("0")); } }