/// <summary> /// Bind the context and the session with the content /// </summary> /// <param name="context">Context page</param> /// <param name="session">Session object</param> /// <param name="id">Content ID</param> /// <param name="userId">current user ID</param> public void Bind(HttpContextBase context, ISession session, int?id, int?userId, int?LanguageId) { int total = 0; ChallengeRepository challengerepository = new ChallengeRepository(session); this.CollChallenges = challengerepository.ChallengesPaging(1, 6, out total, null, LanguageId); this.TotalCount = total; }