Exemplo n.º 1
0
        /// <summary>
        /// Gets the question category.
        /// </summary>
        /// <returns></returns>
        public static List <string> GetQuestionCategory()
        {
            List <string> category = new List <string>();

            try
            {
                category = SharePointRepository.GetQuestionnaireCategory();
            }
            catch (Exception)
            {
                throw;
            }

            return(category);
        }
        public IHttpActionResult GetQuestionnaires()
        {
            var questionnaires = SharePointRepository.GetQuestionnaireCategory();

            return(Ok(questionnaires));
        }