public DeleteDiscountResponse DeleteDiscount(DeleteDiscountRequest request)
        {
            AdministrationServiceDAO adminDAO = new AdministrationServiceDAO();
            bool result = adminDAO.DeleteDiscount(request.discounts);

            return(new DeleteDiscountResponse(result));
        }
Пример #2
0
        public DeleteDiscountResponse DeleteDiscount(DeleteDiscountRequest request)
        {
            AdministrationServiceDAO adminDAO = new AdministrationServiceDAO();
            bool result = adminDAO.DeleteDiscount(request.id);

            if (result)
            {
                return(new DeleteDiscountResponse(result));
            }
            else
            {
                ThrowNotFoundException(request.id);
                return(null);
            }
        }