HealthMonitoring.SelfHost.Controllers.EndpointsController.PutUpdateEndpointTags C# (CSharp) Method

PutUpdateEndpointTags() private method

private PutUpdateEndpointTags ( System.Guid id, [ tags ) : IHttpActionResult
id System.Guid
tags [
return IHttpActionResult
        public IHttpActionResult PutUpdateEndpointTags(Guid id, [FromBody]string[] tags)
        {
            try
            {
                RequestContext.Authorize(id, SecurityRole.Admin);

                tags.CheckForUnallowedSymbols();

                if (_endpointRegistry.TryUpdateEndpointTags(id, tags))
                    return Ok();

                return NotFound();
            }
            catch (ArgumentException e)
            {
                return BadRequest(e.Message);
            }
        }
    }