Ejemplo n.º 1
0
 public JsonResult Del(int id)
 {
     try
     {
         _business.Del(id);
         return(Json(new JsonResultLogModel
         {
             State = true,
             Message = "删除组织成功!",
             Log = $" 用户 {SiteUser.Username} 删除组织 id:{id} ",
             LogType = LogType.OrganManage,
             Username = SiteUser.Username
         }));
     }
     catch (Exception ex)
     {
         return(Json(new { State = false, Message = ex.Message }));
     }
 }
Ejemplo n.º 2
0
 public JsonResult Del(int id)
 {
     try
     {
         _business.Del(id);
         return(Json(new JsonResultLogModel
         {
             State = true,
             Message = "删除组织成功!",
             Log = $" 用户 {ViewDatas.GetInstance().GetUser(Request).Username} 删除组织 id:{id} ",
             LogType = LogType.OrganManage,
             Username = ViewDatas.GetInstance().GetUser(Request).Username
         }));
     }
     catch (Exception ex)
     {
         return(Json(new { State = false, Message = ex.Message }));
     }
 }