public AddPackageArrangementsResponse AddPackageArrangements(AddPackageArrangementsRequest request)
        {
            AdministrationServiceDAO adminDAO = new AdministrationServiceDAO();
            bool result = adminDAO.AddPackageArrangments(request.package_arrangements);

            return(new AddPackageArrangementsResponse(result));
        }
Ejemplo n.º 2
0
        public AddPackageArrangementsResponse AddPackageArrangements(AddPackageArrangementsRequest request)
        {
            AdministrationServiceDAO adminDAO = new AdministrationServiceDAO();
            int itemId = adminDAO.AddPackageArrangments(request.package_arrangements);

            if (itemId != -1)
            {
                return(new AddPackageArrangementsResponse(true, itemId));
            }
            else
            {
                // TODO: throw DB exception
                return(new AddPackageArrangementsResponse(false, -1));
            }
        }