Example #1
0
        public void DeleteRelatedItem(string project, string app, string resource, string parentid, string relatedresource, string id, string format)
        {
            Response response = new Response();

            try
            {
                format = MapContentType(project, app, format);

                response = _adapterProvider.DeleteRelated(project, app, resource, parentid, relatedresource, id, format);
            }
            catch (Exception ex)
            {
                response.Level = StatusLevel.Error;
                response.Messages.Add(ex.Message);
            }

            PrepareResponse(ref response);
            _adapterProvider.FormatOutgoingMessage <Response>(response, format, false);
        }