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); } }
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); } }