/// <summary> /// Creates a new package /// </summary> public void CreatePackage(NewPackageDTO newPackageDTO) { // create the studentDTO for persistence and populate its properties PackageDTO packageDTO = new PackageDTO() { TrackingNum = newPackageDTO.Trackingnum, Firstname = newPackageDTO.Firstname, Lastname = newPackageDTO.Lastname, }; _packageDAO.CreatePackage(packageDTO); }
/// <summary> /// Creates a new package /// </summary> public void CreatePackage(NewPackageDTO newPackageDTO) { // create the studentDTO for persistence and populate its properties NewPackageDTO packageDTO = new NewPackageDTO() { TrackingID = newPackageDTO.TrackingID, Firstname = newPackageDTO.Firstname, Lastname = newPackageDTO.Lastname, Logtime = newPackageDTO.Logtime, Buildingname = newPackageDTO.Buildingname }; _packageDAO.CreatePackage(packageDTO); }