/// <summary> /// Get all the reservations /// </summary> /// <returns>A collection with found reservations</returns> public Dto.CollectionActionResult <Dto.ReservationRequest> GetAllReservations() { return(Call(() => { var spec = ReservationSpecifications.GetAll(); var reservations = _reservationRepository.AllMatching(spec); return new Dto.CollectionActionResult <Dto.ReservationRequest> { Status = ActionResultCode.Success, Items = reservations.ProjectedAsCollection <Dto.ReservationRequest>() }; })); }