/// <summary>
        /// Add a new request
        /// </summary>
        /// <param name="model"></param>
        public int Add(RequestToProvider model)
        {
            var po = this.context.RequestsToProvider.Add(model);

            this.context.SaveChanges();

            return(po.Id);
        }
Exemplo n.º 2
0
 public GeneralShowDto GeneralShowDto(RequestToProvider request)
 {
     return(new GeneralShowDto()
     {
         SearchShow = MapperT <RequestToProvider, SearchShowDto> .GetTMap(request),
         ShowReservation = MapperT <RequestToProvider, ShowReservationDto> .GetTMap(request),
         Show = MapperT <RequestToProvider, ShowDto> .GetTMap(request)
     });
 }
Exemplo n.º 3
0
 private GeneralHotelDto GeneralHotelDto(RequestToProvider request)
 {
     return(new GeneralHotelDto()
     {
         SearchRoom = MapperT <RequestToProvider, SearchRoomDto> .GetTMap(request),
         Hotel = MapperT <RequestToProvider, HotelDto> .GetTMap(request),
         RoomReservation = MapperT <RequestToProvider, RoomReservationDto> .GetTMap(request)
     });
 }
Exemplo n.º 4
0
        private GeneralFlightDto GetGeneralFlightDto(RequestToProvider request)
        {
            var generalFlight = new GeneralFlightDto()
            {
                BookFlight   = MapperT <RequestToProvider, BookFlightDto> .GetTMap(request),
                Flight       = MapperT <RequestToProvider, FlightDto> .GetTMap(request),
                SearchFlight = MapperT <RequestToProvider, SearchFlightDto> .GetTMap(request)
            };

            return(generalFlight);
        }