我只想使用c#显示任何消息。由于返回视图(),我看不到通知消息。我该怎么表现?我的密码是这样的。
try
{
if (entity == null)
{
notyf.Warning("Entity null");
return View();
}
categoryService.Insert(entity);
notyf.Success("WellDone.");
return RedirectToAction("ListCategory");
}
catch (Exception ex)
{
notyf.Error("serviceError" + ex.Message, 12);
return View();
}发布于 2021-08-19 07:51:59
https://stackoverflow.com/questions/68670151
复制相似问题