public JsonResult ApproveTimesheet(TimesheetViewModel model, int?roleId = null) { bool result; AssociateModel currentUserId = null; try { currentUserId = associateService.GetAssociate(User.Identity.Name); } catch (Exception) {} if (currentUserId == null || currentUserId.Id == 0) { model.CurrentUserId = this.ClientContactVerifiedDetails().ClientContactId; result = timesheetService.ApproveTimesheet(model, true); } else { result = timesheetService.ApproveTimesheet(model); } return(Json(result)); }
public JsonResult ApproveTimesheet(TimesheetViewModel model) { return(Json(timesheetService.ApproveTimesheet(model), JsonRequestBehavior.AllowGet)); }