Пример #1
0
 /// <summary>
 /// 修改轮切资源编码
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int UpdateSwitchCode(GallerySwitchModel model)
 {
     try
     {
         return(mapContext.Update("UpdateSwitchCode", model));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 /// <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;
     }
 }