コード例 #1
0
        public HttpResponseMessage Validate(string type, string id, ResourceEntry entry)
        {
            entry.Tags = Request.GetFhirTags();
            ResourceEntry <OperationOutcome> outcome = service.Validate(type, entry, id);

            if (outcome == null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK));
            }
            else
            {
                return(Request.ResourceResponse(outcome, (HttpStatusCode)422));
            }
        }