Exemple #1
0
 public static bool CheckAccess(string EventName, Guid IDUser)
 {
     try
     {
         Bis.EventUserMethods   BisEventUser = new Bis.EventUserMethods();
         ViewModel.tblEventUser getUserEvent = new ViewModel.tblEventUser();
         getUserEvent.IDUser    = IDUser;
         getUserEvent.EventName = EventName;
         DataSet ds = BisEventUser.CheckForAccessInEventUser(getUserEvent);
         if (ds.Null_Ds())
         {
             return(false);
         }
         else
         {
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }