Esempio n. 1
0
 public JsonResult DeleteCategoryById(long id)
 {
     CategoryApplication.DeleteCategory(id);                 //用AOP来做
     CashDepositsApplication.DeleteCategoryCashDeposits(id); //--bo.shu  2017-8-31  删除类型的同时 删除对应类型的保证金
     //ServiceApplication.Create<IOperationLogService>().AddPlatformOperationLog(
     //       new LogInfo
     //       {
     //           Date = DateTime.Now,
     //           Description = "删除平台分类,Id=" + id,
     //           IPAddress = Request.UserHostAddress,
     //           PageUrl = "/Category/DeleteCategoryById/" + id,
     //           UserName = CurrentManager.UserName,
     //           ShopId = 0
     //       });
     return(Json(new Result {
         success = true
     }, JsonRequestBehavior.AllowGet));
 }
Esempio n. 2
0
 public JsonResult DeleteCategoryById(long id)
 {
     CategoryApplication.DeleteCategory(id);                 //用AOP来做
     CashDepositsApplication.DeleteCategoryCashDeposits(id); //--bo.shu  2017-8-31  删除类型的同时 删除对应类型的保证金
     //ServiceApplication.Create<IOperationLogService>().AddPlatformOperationLog(
     //       new LogInfo
     //       {
     //           Date = DateTime.Now,
     //           Description = "删除平台分类,Id=" + id,
     //           IPAddress =  base.Request.HttpContext.Features.Get<IHttpConnectionFeature>()?.RemoteIpAddress.ToString(),
     //           PageUrl = "/Category/DeleteCategoryById/" + id,
     //           UserName = CurrentManager.UserName,
     //           ShopId = 0
     //       });
     return(Json(new Result {
         success = true
     }));
 }