Example #1
0
        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);
        }
Example #2
0
 public TraceRouteService(IRouteBusiness routeBusiness, IQuestionBusiness questionBusiness)
 {
     _routeBusiness    = routeBusiness;
     _questionBusiness = questionBusiness;
 }
Example #3
0
 public QuestionService(IQuestionBusiness QuestionBiz)
 {
     _QuestionBiz = QuestionBiz;
 }
 public QuestionsController(IQuestionBusiness question, IUserBusiness user, IOptions <PagingOptions> defaultPagingOptionsWrapper)
 {
     _question             = question;
     _user                 = user;
     _defaultPagingOptions = defaultPagingOptionsWrapper.Value;
 }