public static Passenger Map(this UpdatePassengerCommand command) { return(new Passenger() { FlightId = command.FlightId, Name = command.Name, Status = command.Status, Id = command.Id }); }
public async Task <IActionResult> Update([FromBody] UpdatePassengerCommand command) => Ok((await m_Mediator.Send(command)));