public async Task <IList <OfferModel> > GetByCategory(Guid categoryId) { var entities = await _repository.GetByCategory(categoryId); return(_mapper.Map <IList <OfferModel> >(entities)); }