public async Task <IActionResult> Execute(JObject jObj, string subject) { if (jObj == null) { throw new ArgumentNullException(nameof(jObj)); } if (string.IsNullOrWhiteSpace(subject)) { throw new ArgumentNullException(nameof(subject)); } var request = _requestBuilder.GetNotificationStatus(jObj); request.To = subject; var content = await _notificationRepository.Search(request); var href = "/" + Constants.RouteNames.Notifications + "/" + Constants.RouteNames.Status; _halResponseBuilder.AddLinks(l => l.AddSelf(href)).AddEmbedded(e => e.AddObject(_responseBuilder.GetNotificationStatus(content))); return(new OkObjectResult(_halResponseBuilder.Build())); }