Example #1
0
        /// <summary>
        /// Gets the specified town identifier.
        /// </summary>

        public void Get()

        {
            var service = new SummaryVillService();

            var result = service.GetLists();

            base.JsonResponse(result);
        }
Example #2
0
        /// <summary>
        /// 清單
        /// </summary>
        /// <param name="town_id">The town identifier.</param>
        /// <param name="type">The type.</param>
        public void Get(string vill_id)
        {
            var input = new SummaryVillInput
            {
                Vill_ID = vill_id,
            };
            var service = new SummaryVillService(input);
            var result  = service.GetStatistics(vill_id);

            base.JsonResponse(result);
        }