Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }