Exemplo n.º 1
0
 public IEnumerable <Role> GetAllRole(params Expression <Func <Role, object> >[] includePredicates)
 {
     try
     {
         return(_rolepost.GetEntities(includePredicates));
     }
     catch (Exception)
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public IEnumerable <User> GetAllUser(params Expression <Func <User, object> >[] includePredicates)
 {
     try
     {
         return(_userpost.GetEntities(includePredicates));
     }
     catch (Exception)
     {
         return(null);
     }
 }