/// <summary> /// 查询公告栏信息 /// </summary> /// <param name="bulletinBoardSearchSingleViewModel"></param> /// <returns></returns> public BulletinBoardSearchMiddlecs Bulletin_Board_SearchSingle(BulletinBoardSearchSingleViewModel bulletinBoardSearchSingleViewModel) { var bulletin_Board = _IBulletinBoardRepository.SearchByBulletinId(bulletinBoardSearchSingleViewModel.Id).ToList(); var BusSearchMiddlecs = _IMapper.Map <Bulletin_Board, BulletinBoardSearchMiddlecs>(bulletin_Board[0]); return(BusSearchMiddlecs); }
public ActionResult <BulletinBoardSearchSingleResModel> Manage_BulletinBoardSingle_Search(BulletinBoardSearchSingleViewModel bulletinBoardSearchSingleViewModel) { BulletinBoardSearchSingleResModel bulletinBoardSearchSingleResModel = new BulletinBoardSearchSingleResModel(); var BusSearchResult = _bulletinBoardService.Bulletin_Board_SearchSingle(bulletinBoardSearchSingleViewModel); bulletinBoardSearchSingleResModel.bulletinBoard_Infos = BusSearchResult; bulletinBoardSearchSingleResModel.isSuccess = true; bulletinBoardSearchSingleResModel.baseViewModel.Message = "查询成功"; bulletinBoardSearchSingleResModel.baseViewModel.ResponseCode = 200; bulletinBoardSearchSingleResModel.TotalNum = 1; _ILogger.Information("查询公告栏信息成功"); return(Ok(bulletinBoardSearchSingleResModel)); }