/// <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)); }
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)); }
/// <summary> /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <IActionResult> DetailsAsync(string id) { var item = await _iJsonDataService.FindAsync(id); return(View(item)); }