public async Task <string> Get(int id, [FromServices] IQuestionBusiness QuestionBusiness) { var result = await QuestionBusiness.GetQuestionSet(id); string serializedJson = JsonConvert.SerializeObject(result, Formatting.Indented, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Objects, }); return(serializedJson); }
public TraceRouteService(IRouteBusiness routeBusiness, IQuestionBusiness questionBusiness) { _routeBusiness = routeBusiness; _questionBusiness = questionBusiness; }
public QuestionService(IQuestionBusiness QuestionBiz) { _QuestionBiz = QuestionBiz; }
public QuestionsController(IQuestionBusiness question, IUserBusiness user, IOptions <PagingOptions> defaultPagingOptionsWrapper) { _question = question; _user = user; _defaultPagingOptions = defaultPagingOptionsWrapper.Value; }