public List <Models.Deal.Deal> GetAll() { var deals = _dealRepository.GetAllDeals(); return(deals.ToList()); }
public ActionResult <IEnumerable <DealReadDto> > GetAllDeals() { var dealItems = _repository.GetAllDeals(); return(Ok(_mapper.Map <IEnumerable <DealReadDto> >(dealItems))); }
public IEnumerable <Deal> GetAllDeals() { return(dealRepository.GetAllDeals()); }