public async Task <IActionResult> AddOrUpdate(Guid?Id) { ViewData["DataType"] = typeof(Categories); if (Id != null) { var contentEntry = (await goodsBusiness.GetInfo(Id.Value)).Data; ViewData["DataModel"] = contentEntry; } return(View()); }
public async Task <IActionResult> GetGoodInfo(Guid Id) { var result = await goodsBs.GetInfo(Id); return(Json(result)); }