Beispiel #1
0
 public IEnumerable <PermisoEntity> GetPermiRolList(int?IdRol)
 {
     if (WebOperationContext.Current.IncomingRequest.Method == "OPTIONS")
     {
         return(null);
     }
     else
     {
         try
         {
             return(Permiso.GetPermisoRolList(IdRol));
         }
         catch (Exception ex)
         {
             throw new WebFaultException <string>(ex.Message, HttpStatusCode.ExpectationFailed);
         }
     }
 }