//Method for receiving all lots that are awaiting confirmation public IEnumerable <CarViewModel> GetAll() { IEnumerable <CarDTO> phoneDtos = auctionService.GetAllUnCheckedCars(); var mapper = new MapperConfiguration(cfg => cfg.CreateMap <CarDTO, CarViewModel>()).CreateMapper(); var services = mapper.Map <IEnumerable <CarDTO>, List <CarViewModel> >(phoneDtos); return(services); }