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