Exemplo n.º 1
0
        public void RemoveExamsUser(ExamsUsers entityToRemove)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            Entities.ExamsUsers entityToRemove2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToRemove);
            repo.Remove(entityToRemove2);
        }
Exemplo n.º 2
0
        public IEnumerable <Users> GetExamStudents(int examId)
        {
            IExamsUsersRepository        repo          = new ExamsUsersRepository(getEntities());
            IEnumerable <Entities.Users> returnedValue = repo.GetExamStudents(examId);

            return(Mapper.Map <IEnumerable <Entities.Users>, IEnumerable <Users> >(returnedValue));
        }
Exemplo n.º 3
0
        public void AddExamsUser(ExamsUsers entityToAdd)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            Entities.ExamsUsers entityToAdd2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToAdd);
            repo.Add(entityToAdd2);
        }
Exemplo n.º 4
0
        public int GetIdOfExamsUser(ExamsUsers entityToGetId)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            Entities.ExamsUsers entityToGetId2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToGetId);
            return(repo.GetExamUserId(entityToGetId2));
        }
Exemplo n.º 5
0
        public IEnumerable <ExamsUsers> GetAllExamsUsers()
        {
            IExamsUsersRepository             repo           = new ExamsUsersRepository(getEntities());
            IEnumerable <Entities.ExamsUsers> returnedValue  = repo.GetAll();
            IEnumerable <ExamsUsers>          returnedValue2 = Mapper.Map <IEnumerable <Entities.ExamsUsers>, IEnumerable <ExamsUsers> >(returnedValue);

            return(returnedValue2);
        }
Exemplo n.º 6
0
        public ExamsUsers GetExamsUserById(int entityToGetById)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            Entities.ExamsUsers returnedValue  = repo.GetById(entityToGetById);
            ExamsUsers          returnedValue2 = Mapper.Map <Entities.ExamsUsers, ExamsUsers>(returnedValue);

            return(returnedValue2);
        }
Exemplo n.º 7
0
        public void RemoveExamsUserById(int entityToRemoveById)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            repo.RemoveById(entityToRemoveById);
        }