Beispiel #1
0
 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());
 }
Beispiel #2
0
        public async Task <IActionResult> GetGoodInfo(Guid Id)
        {
            var result = await goodsBs.GetInfo(Id);

            return(Json(result));
        }