public async Task <IActionResult> GetByProjectId([FromRoute] string projectId) { var bids = await _bidRepository.GetByProjectId(projectId); var bidDtos = _mapper.Map <IList <BidDto> >(bids); return(Ok(bidDtos)); }