コード例 #1
0
        /// <summary>
        /// </summary>
        /// <param name="id">
        /// </param>
        /// <returns>
        /// </returns>
        public async Task <IActionResult> Details(string id)
        {
            var jsonData = await jsonDataService.FindAsync(id);

            var item = JsonConvert.DeserializeObject <Holiday>(jsonData.JsonDataStr);

            return(View(item));
        }
コード例 #2
0
        public async Task <IActionResult> Get(string id)
        {
            try
            {
                var item = await jsonDataService.FindAsync(id);

                _IResInfo.Data = JObject.Parse(item.JsonDataStr);
            }
            catch (Exception e)
            {
                _IResInfo.Msg = e.Message;
            }
            return(Ok(_IResInfo));
        }
コード例 #3
0
        /// <summary>
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <IActionResult> DetailsAsync(string id)
        {
            var item = await _iJsonDataService.FindAsync(id);

            return(View(item));
        }