Example #1
0
        public async Task RateAsync(RateFlightRequestModel model)
        {
            var ticket = await _ticketRepository.GetByIdAsync(model.FlightTicketId);

            ticket.Rating = model.Rating;
            await _ticketRepository.UpdateAsync(ticket);
        }
 public Task RateFlight([FromBody] RateFlightRequestModel model)
 {
     return(_flightService.RateAsync(model));
 }