public void RemoveExamsUser(ExamsUsers entityToRemove) { IExamsUsersRepository repo = new ExamsUsersRepository(getEntities()); Entities.ExamsUsers entityToRemove2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToRemove); repo.Remove(entityToRemove2); }
public int GetIdOfExamsUser(ExamsUsers entityToGetId) { IExamsUsersRepository repo = new ExamsUsersRepository(getEntities()); Entities.ExamsUsers entityToGetId2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToGetId); return(repo.GetExamUserId(entityToGetId2)); }
public void AddExamsUser(ExamsUsers entityToAdd) { IExamsUsersRepository repo = new ExamsUsersRepository(getEntities()); Entities.ExamsUsers entityToAdd2 = Mapper.Map <ExamsUsers, Entities.ExamsUsers>(entityToAdd); repo.Add(entityToAdd2); }
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); }