Example #1
0
 public JsonResult GetTimeSheetsForInvoicing(int associateId)
 {
     try
     {
         var timesheets = timesheetService.GetTimeSheetsForInvoicing(associateId);
         return(this.Json(timesheets));
     }
     catch (Exception ex)
     {
         return(this.Json(ex));
     }
 }
Example #2
0
        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));
            }
        }