/// <summary> /// 修改大厅参数 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="list"></param> /// <returns></returns> public bool UpdateAreaParams(AreaParamsModel list) { try { using (_db) { bool res = _db.Update(list); return(res); } } catch (Exception e) { _logger.LogError($"UpdateAreaParams:{e.Message}"); throw; } }
/// <summary> /// 获取自定义参数 /// </summary> /// <param name="areaid"></param> /// <returns></returns> public AreaParamsModel GetAreaParams(int areaid, int type) { try { var res = _repository.GetAreaParams(areaid, type); if (res == null) { res = new AreaParamsModel(); } return(res); } catch (Exception e) { _logger.LogError($"GetAreaParams:{e.Message}"); throw; } }