public IActionResult GetSingleOrder(int id, [FromQuery] string _include) { var requestedOrder = _oa.GetSingleOrder(id, _include); return(requestedOrder == null ? BadRequest() as IActionResult : Ok(requestedOrder)); }
public IActionResult GetSingleOrder(int id, [FromQuery] string _include) { var requestedOrder = _oa.GetSingleOrder(id, _include); return(requestedOrder == null ? BadRequest() as IActionResult : Ok(requestedOrder)); }