예제 #1
0
        public HttpResponseMessage Delete(int id)
        {
            RecipientList list = RecipientList.Load(id);

            if (list == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }

            list.Delete();

            return(Request.CreateResponse(HttpStatusCode.OK, "Recipient list deleted"));
        }