Example #1
0
        public void Delete(int?id)
        {
            if (read.GetById(id) == null)
            {
                throw new NotFoundOrderException();
            }

            delete.Delete(id);
        }
Example #2
0
 private Order GetOrder(int?id)
 {
     return(orderRepository.GetById(id) ?? throw new NotFoundOrderException());
 }