public void DeleteComponent(string componentGroupUid, string componentUid)
        {
            if (componentGroupUid == null)
            {
                throw new ArgumentNullException(nameof(componentGroupUid));
            }
            if (componentUid == null)
            {
                throw new ArgumentNullException(nameof(componentUid));
            }

            try
            {
                _componentGroupRegistryService.UnassignComponent(componentGroupUid, componentUid);
            }
            catch (ComponentGroupNotFoundException)
            {
                HttpContext.Response.StatusCode = (int)HttpStatusCode.NotFound;
            }
        }
Example #2
0
 public void DeleteComponent(string componentGroupUid, string componentUid)
 {
     _componentGroupRegistryService.UnassignComponent(componentGroupUid, componentUid);
 }