public void PostComponent(string componentGroupUid, string componentUid) { if (componentGroupUid == null) { throw new ArgumentNullException(nameof(componentGroupUid)); } if (componentUid == null) { throw new ArgumentNullException(nameof(componentUid)); } try { _componentGroupRegistryService.AssignComponent(componentGroupUid, componentUid); } catch (ComponentGroupNotFoundException) { HttpContext.Response.StatusCode = (int)HttpStatusCode.NotFound; } }
public void PostComponent(string componentGroupUid, string componentUid) { _componentGroupRegistryService.AssignComponent(componentGroupUid, componentUid); }