Beispiel #1
0
 public JsonResult deleteDetail(int id)
 {
     if (id > 0)
     {
         using (var manage = new bitcms.Data.CMSManage())
         {
             var detailInfo = manage.getDetailInfo(id);
             if (detailInfo != null)
             {
                 if (detailInfo.UserId == this.userOnlineInfo.UserId)
                 {
                     manage.deleteDetail(id);
                     return(this.getResult(manage.Error, manage.Message));
                 }
                 else
                 {
                     return(this.getResult(Entity.Error.错误, "非法操作"));
                 }
             }
         }
     }
     return(this.getResult(Entity.Error.错误, "参数错误"));
 }