public IHttpActionResult GetAllPermissionsList()
 {
     try
     {
         if (HttpContext.Current.User.Identity.IsAuthenticated)
         {
             var permissionCollection = _workFlowRepository.GetAllPermissionsList();
             return(Ok(permissionCollection));
         }
         else
         {
             return(BadRequest());
         }
     }
     catch (Exception ex)
     {
         _errorLog.LogException(ex);
         throw;
     }
 }