コード例 #1
0
 /// <summary>
 /// 轮播图文--修改
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public async Task UpdateDataAsync(MiniComponentSwiperDTO data)
 {
     data.Image = data.Image.Replace(ConfigHelper.GetValue("FastDFS:FileRootUrl"), "");
     await UpdateAsync(data);
 }
コード例 #2
0
 /// <summary>
 /// 新建轮播图
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public async Task AddDataAsync(MiniComponentSwiperDTO data)
 {
     await InsertAsync(_mapper.Map <mini_component_swiper>(data));
 }