public IHttpActionResult GetAllRolePermissionlist()
 {
     try
     {
         if (HttpContext.Current.User.Identity.IsAuthenticated)
         {
             string userId         = HttpContext.Current.User.Identity.GetUserId();
             var    companyDetail  = _companyRepository.GetCompanyDetailByUserId(userId);
             var    rolePermission = _workFlowRepository.GetAllRolePermissionlist(companyDetail.Id);
             return(Ok(rolePermission));
         }
         else
         {
             return(BadRequest());
         }
     }
     catch (Exception ex)
     {
         _errorLog.LogException(ex);
         throw;
     }
 }