Exemple #1
0
        public void DeleteItem(string project, string app, string resource, string id, string format)
        {
            Response response = new Response();

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

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

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