public IHttpActionResult GetUnconfirmed() { var unconfirmedReservations = _reservationsService.GetUnconfirmed().ToList(); var resultData = new List <ReservationDto>(); foreach (var reservation in unconfirmedReservations) { resultData.Add(Mapper.Map <Reservation, ReservationDto>(reservation)); } return(Ok(resultData)); }