Пример #1
0
 public Role GetRole(long rolepostid, params Expression <Func <Role, object> >[] includePredicates)
 {
     try
     {
         return(_rolepost.GetEntity(a => a.RoleId.Equals(rolepostid)).FirstOrDefault());
     }
     catch (Exception ce)
     {
         throw new Exception(ce.Message);
     }
 }
Пример #2
0
 public User GetUser(long userpostid, params Expression <Func <User, object> >[] includePredicates)
 {
     try
     {
         return(_userpost.GetEntity(a => a.UserId.Equals(userpostid)).FirstOrDefault());
     }
     catch (Exception ce)
     {
         throw new Exception(ce.Message);
     }
 }