Beispiel #1
0
        public HttpResponseMessage Delete(string id)
        {
            return(WrapInTryCatch(() =>
            {
                if (string.IsNullOrEmpty(id))
                {
                    throw new ArgumentNullException();
                }

                _queryService.Delete(id);
                return new HttpResponseMessage(HttpStatusCode.OK);
            }));
        }