public async Task <IActionResult> Execute(string subject) { if (string.IsNullOrWhiteSpace(subject)) { throw new ArgumentNullException(nameof(subject)); } var content = await _orderRepository.GetStatus(new GetOrderStatusParameter { Subject = subject, }); var href = "/" + Constants.RouteNames.Orders + "/" + Constants.RouteNames.Status; _halResponseBuilder.AddLinks(l => l.AddSelf(href)).AddEmbedded(e => e.AddObject(_responseBuilder.GetOrderStatus(content))); return(new OkObjectResult(_halResponseBuilder.Build())); }