Example #1
0
        public void RemoveExamsUser(ExamsUsers entityToRemove)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            Entities.ExamsUsers entityToRemove2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToRemove);
            repo.Remove(entityToRemove2);
        }
Example #2
0
        public int GetIdOfExamsUser(ExamsUsers entityToGetId)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            Entities.ExamsUsers entityToGetId2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToGetId);
            return(repo.GetExamUserId(entityToGetId2));
        }
Example #3
0
        public void AddExamsUser(ExamsUsers entityToAdd)
        {
            IExamsUsersRepository repo = new ExamsUsersRepository(getEntities());

            Entities.ExamsUsers entityToAdd2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToAdd);
            repo.Add(entityToAdd2);
        }
Example #4
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);
        }