public async Task <IActionResult> GetQuestions(Guid id) { var survey = new Survey(); Result <SurveyDetailsDto> result; try { result = await survey.GetDetails(id, _repository); } catch (Exception e) { return(BadRequest(e)); } return(Ok(result)); }
public async Task <IActionResult> GetQuestions(Guid id) { var survey = new Survey(); Result <SurveyDetailsDto> result; try { result = await survey.GetDetails(id, _repository); } catch (Exception e) { return(BadRequest(e)); } return(Ok(result)); }