Example #1
0
        public List <UserStats> GetUserStats(string name, int category)
        {
            int idUser        = _uow.UserRepo.GetIdByName(name);
            int idParticipant = _uow.ContributorRepo.Where(x => x.IdUser == idUser).Single().PersonId;

            DbInscription dbInscription = new DbInscription();

            return(dbInscription.getStatsByCategory(idParticipant, category));
        }
Example #2
0
        public List <InscriRaceSuivi> GetInscriByUserName(string name)
        {
            int idUser        = _uow.UserRepo.GetIdByName(name);
            int idParticipant = _uow.ContributorRepo.Where(x => x.IdUser == idUser).Single().PersonId;

            DbInscription dbInscription = new DbInscription();

            return(dbInscription.GetInscriByIdParticipant(idParticipant));
        }
        public int GetNumberInscription(int idCourse)
        {
            DbInscription inscriptionDB = new DbInscription();
            return inscriptionDB.GetCountInscriByCourse(idCourse);

        }
Example #4
0
        public void DeleteInscription(int idInscri)
        {
            DbInscription dbInscrition = new DbInscription();

            dbInscrition.Remove(idInscri);
        }
Example #5
0
        public List <int> GetCategoriesId()
        {
            DbInscription dbInscription = new DbInscription();

            return(dbInscription.getCategoriesId());
        }