Beispiel #1
0
        public void Delete(string id)
        {
            Int32 realId;

            if (!Int32.TryParse(id, out realId))
            {
                WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.NotFound;
            }
            else
            {
                orderDetailDao.DeleteById(realId);
            }
        }
 public void Delete(int id)
 {
     orderDetailDao.DeleteById(id);
 }