public async Task <bool> DeleteOptionById(Guid id)
        {
            try
            {
                var option = await _optionRepository.Get(id);

                if (option == null)
                {
                    return(false);
                }

                await _optionRepository.Delete(option);

                return(true);
            }
            catch (Exception e)
            {
                _logger.Error(e, "QuestionOptionManagementService.DeleteOptionById");
                throw;
            }
        }
예제 #2
0
 public _ReturnProc Delete(string questionOptionId)
 {
     m_QuestionOptionRepository.PersonId = this.PersonId;
     return(m_QuestionOptionRepository.Delete(questionOptionId));
 }