|
|
@@ -118,8 +118,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
AddSysLog(data.Id.ToString(), "Advertisment", "add");
|
|
|
bsdb.SaveChanges();
|
|
|
|
|
|
- SetRedis(data.ColId, Id);
|
|
|
-
|
|
|
return "success";
|
|
|
}
|
|
|
|
|
|
@@ -166,8 +164,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
AddSysLog(data.Id.ToString(), "Advertisment", "update");
|
|
|
bsdb.SaveChanges();
|
|
|
|
|
|
- SetRedis(data.ColId, data.Id);
|
|
|
-
|
|
|
return "success";
|
|
|
}
|
|
|
|
|
|
@@ -193,7 +189,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
ColId = ad.ColId;
|
|
|
}
|
|
|
new AdminContentOther(_accessor.HttpContext, PublicFunction.BsTables).Delete("Advertisment", id);
|
|
|
- SetRedis(ColId);
|
|
|
}
|
|
|
bsdb.SaveChanges();
|
|
|
|
|
|
@@ -259,10 +254,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
AddSysLog(Id.ToString(), "Advertisment", "sort");
|
|
|
Advertisment ad = bsdb.Advertisment.FirstOrDefault(m => m.Id == Id);
|
|
|
- if (ad != null)
|
|
|
- {
|
|
|
- SetRedis(ad.ColId);
|
|
|
- }
|
|
|
return "success";
|
|
|
}
|
|
|
#endregion
|