public async Task <IActionResult> GetById(string id) { var bid = await _bidRepository.GetById(id); var bidDto = _mapper.Map <BidDto>(bid); return(Ok(bidDto)); }
public BidEntity GetBidEntity(int id) { try { return(_bidRepository.GetById(id).ToBidEntity()); } catch (Exception exception) { Log.LogError(exception); return(null); } }
/* public IEnumerable<BidEntity> GetLatestBidsByUserId(int userId) * { * * } */ public BidEntity GetBidById(int id) { return(_bidRepository.GetById(id).ToBllBidEntity()); }
public BidDto GetItem(int id) { return(_bidRepository.GetById(id)?.ToDto()); }