public async Task <IEnumerable <OfferCommentModel> > Get(Guid offerId) { var offer = await _repository.GetByIdWithComments(offerId); return(_mapper.Map <IEnumerable <OfferCommentModel> >(offer.Comments)); }
public async Task <IEnumerable <OfferCommentModel> > Get(Guid offerId) { var offer = await _repository.GetByIdWithComments(offerId); return(_mapper.Map <IEnumerable <OfferCommentModel> >(offer.Comments)); }