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)); }
public ContextModel(int parent, MainRule rule) : base(parent, rule) { }