This commit is contained in:
Philip Dimitratos 2017-10-27 14:24:23 -07:00
Родитель d81f30f8f9
Коммит aa01bb0854
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -20,11 +20,11 @@ namespace Sia.Gateway.Controllers
}
[HttpGet("{id}")]
public async Task<IActionResult> Get(long id, long conditionSetId)
=> Ok(await _mediator.Send(new GetConditionRequest(id, conditionSetId, _authContext)));
public async Task<IActionResult> Get(long actionId, long id, long conditionSetId)
=> Ok(await _mediator.Send(new GetConditionRequest(actionId, id, conditionSetId, _authContext)));
[HttpPost()]
public async Task<IActionResult> Post(CreateCondition content, long conditionSetId)
=> Ok(await _mediator.Send(new PostConditionRequest(conditionSetId, content, _authContext)));
public async Task<IActionResult> Post(CreateCondition content, long actionId, long conditionSetId)
=> Ok(await _mediator.Send(new PostConditionRequest(actionId, conditionSetId, content, _authContext)));
}
}