public async Task <IActionResult> DeleteGoods(string id) { bool flag = await _service.DeleteGoodsAsync(Convert.ToInt64(id), _context); return(Json(new { sueeess = flag, msg = flag ? "数据删除成功,物品编号:" + id : "数据删除失败,物品编号:" + id })); }
public async Task <IActionResult> DeleteGoods(string id) { bool flag = await _service.DeleteGoodsAsync(Convert.ToInt64(id), _context); return(Json(new { sueeess = flag, msg = flag ? "数据删除成功,物品编号:" + id : "数据删除失败,物品编号:" + id })); }