示例#1
0
        public bool RemoveProduct(int ID)
        {
            //Product ProductToDelete = Repository.GetProduct(ID);
            var Result = Repository.RemoveProduct(ID);

            if (!Result)
            {
                Result = false;
                throw new HttpResponseException
                          (HttpStatusCode.NotFound);
            }
            return(Result);
        }