public IEnumerable<RoleEntity> GetUsersRoles(UserEntity e) { return roleRepository.GetUsersRoles(e.ToDalUser()).Select(role => role.ToBllRole()); }
public void FinishTest(UserEntity user) { usersTestsRepository.FinishTest(user.ToDalUser()); uow.Commit(); }
public UsersTestsEntity GetLastResult(UserEntity user) { return usersTestsRepository.GetLastResult(user.ToDalUser()).ToBllUsersTest(); }
public bool IsUserTested(UserEntity user) { return usersTestsRepository.IsUserTested(user.ToDalUser()); }
public void StartTest(UserEntity user, TestEntity test) { usersTestsRepository.StartTest(user.ToDalUser(), test.ToDalTest()); uow.Commit(); }
public void UpdateUser(UserEntity user) { userRepository.Update(user.ToDalUser()); uow.Commit(); }
public void SetRole(UserEntity user, RoleEntity role) { userRepository.SetRole(user.ToDalUser(), role.ToDalRole()); uow.Commit(); }
public void SetCoauthor(UserEntity user, TestEntity test) { testRepository.SetCoauthor(user.ToDalUser(), test.ToDalTest()); uow.Commit(); }
public bool AllowedUser(TestEntity test, UserEntity user) { return testRepository.AllowedUser(test.ToDalTest(), user.ToDalUser()); }
public IEnumerable<TestEntity> GetByAuthor(UserEntity user) { return testRepository.GetByAuthor(user.ToDalUser()).Select(test => test.ToBllTest()); }