public async Task <IActionResult> GetActiveOrders([FromBody] AccessTokenModel model, Guid guid) { IAccessToken accessToken = await m_token_service.GetToken(model.Token); if (accessToken == null || accessToken.HasExpired) { return(BadRequest()); } IRetailOrder order = await m_order_provider.GetOrder(accessToken.User, guid); if (order == null) { return(NotFound()); } return(Ok(new OrderModel(accessToken, order))); }