Exemple #1
0
 public ActionResult ApproveAbsence(Absence absence)
 {
     try
     {
         var isAdmin = User.IsInAnyRoles("Admin");
         HRBusinessService.ApproveAbsence(UserOrganisationId, absence, ApplicationUser.Id, isAdmin);
     }
     catch (Exception ex)
     {
         return(this.JsonNet(ex));
     }
     return(this.JsonNet(string.Empty));
 }
Exemple #2
0
 public ActionResult Approve(int personnelId, int id)
 {
     try
     {
         var isAdmin = User.IsInAnyRoles("Admin");
         HRBusinessService.ApproveAbsence(UserOrganisationId, id, ApplicationUser.Id, isAdmin);
         return(Content(true.ToString()));
     }
     catch (Exception ex)
     {
         return(Content(ex.ToString()));
     }
 }