public IActionResult Add(LineModel model) { try { LineModel addmodel = _business.Insert(model); MonitorCenter.GetInstance().Add(new List <LineModel> { addmodel }); //return Json(new { State = true, Message = "用户添加成功!" }); return(Json(new { State = true, Message = "用户添加成功!", Log = $"用户 {GetUser().Username} 添加线路 {model.Name}", LogType = LogType.LineManage, GetUser().Username, OrganId = addmodel.OrganizationId })); } catch (Exception ex) { return(Json(new { State = false, ex.Message })); } }