/// <summary> /// Updates the question /// </summary> /// <param name="entity">Question</param> public void Update(BllQuestion entity) { questionRepository.Update(entity.ToDalQuestion()); unitOfWork.Commit(); }
/// <summary> /// Creates a question and updates the test id /// </summary> /// <param name="entity">Test</param> /// <param name="testId">Test id</param> public void CreateAndUpdateTestId(BllQuestion entity, int testId) { questionRepository.CreateAndUpdateTestId(entity.ToDalQuestion(), testId); unitOfWork.Commit(); }