public JsonResult GetTimeSheetsForInvoicing(int associateId) { try { var timesheets = timesheetService.GetTimeSheetsForInvoicing(associateId); return(this.Json(timesheets)); } catch (Exception ex) { return(this.Json(ex)); } }
public JsonResult GetTimeSheetsForInvoicing() { int associateId = this.AssociateVerifiedDetails().AssociateId; try { var timesheets = timesheetService.GetTimeSheetsForInvoicing(associateId); return(this.Json(timesheets)); } catch (Exception ex) { return(this.Json(ex)); } }