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)); }
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); }
public void DeleteInscription(int idInscri) { DbInscription dbInscrition = new DbInscription(); dbInscrition.Remove(idInscri); }
public List <int> GetCategoriesId() { DbInscription dbInscription = new DbInscription(); return(dbInscription.getCategoriesId()); }