/// <summary> /// 修改轮切资源编码 /// </summary> /// <param name="model"></param> /// <returns></returns> public int UpdateSwitchCode(GallerySwitchModel model) { try { return(mapContext.Update("UpdateSwitchCode", model)); } catch (Exception ex) { throw ex; } }
/// <summary> /// 修改轮切资源编码 /// </summary> /// <param name="id"></param> /// <param name="switchCode"></param> /// <returns></returns> public bool UpdateSwitchCode(int id, string switchCode) { try { GallerySwitchModel model = new GallerySwitchModel(); model.id = id; model.switchCode = switchCode; int res = servScheduleDal.UpdateSwitchCode(model); return(res > 0 ? true : false); } catch (Exception ex) { throw ex; } }