/// <summary> /// 根据ID查看意见箱 /// </summary> /// <param name="suggestBoxUpdateViewModel"></param> /// <returns></returns> public SuggestInfoMiddlecs SuggestBox_SearchById(SuggestBoxSearchByIdViewModel suggestBoxSearchByIdViewModel) { var suggestBox_Info = _ISuggestBoxRepository.GetInfoBySuggestBoxId(suggestBoxSearchByIdViewModel.id); var SuggestSearch = _IMapper.Map <Suggest_Box, SuggestInfoMiddlecs>(suggestBox_Info); return(SuggestSearch); }
public ActionResult <SuggestBoxSearchByIdResModel> Manage_SuggestBox_Search_ById(SuggestBoxSearchByIdViewModel suggestBoxSearchByIdViewModel) { SuggestBoxSearchByIdResModel suggestBoxSearchByIdResModel = new SuggestBoxSearchByIdResModel(); var BusSearchResult = _suggestBoxService.SuggestBox_SearchById(suggestBoxSearchByIdViewModel); suggestBoxSearchByIdResModel.suggestBoxInfo = BusSearchResult; suggestBoxSearchByIdResModel.IsSuccess = true; suggestBoxSearchByIdResModel.baseViewModel.Message = "查询成功"; suggestBoxSearchByIdResModel.baseViewModel.ResponseCode = 200; _ILogger.Information("根据主键ID查询意见箱信息成功"); return(Ok(suggestBoxSearchByIdResModel)); }