private async Task <IWrappedResponse> DeclineTransportAction(Rules.TransportOfferings.DeclineTransport.MainRule mainRule)
        {
            var transport = mainRule.Context.Transport;

            transport.WinningBid.Status = TransportBidStatus.Declined;
            transport.Status            = TransportStatus.Requested;
            transport.WinningBid        = null;

            _olmaTransportRepo.Save();

            var transportOffering = Mapper.Map <TransportOffering>(transport);

            return(Ok(transportOffering));
        }
Пример #2
0
 public ContextModel(int parent, MainRule rule) : base(parent, rule)
 {
 }