Example #1
0
        public ActionResult ReleasePackage(LogPackageModel formdata)
        {
            ReleasePackageModel vm     = new ReleasePackageModel();
            PackageViewer       viewer = new PackageViewer();

            vm.Packages = viewer.GetPackage(formdata.FirstName, formdata.LastName);
            return(View(vm));
        }
Example #2
0
        public ActionResult ReleasePackage(ReleasePackageModel formdata)
        {
            string firstname = formdata.FirstName;
            string lastname  = formdata.LastName;

            PackageViewer            package_viewer = new PackageViewer();
            IList <PackageViewModel> packages       = package_viewer.GetPackage(firstname, lastname);

            var model = new ReleasePackageModel();

            model.Packages  = packages;
            model.FirstName = firstname;
            model.LastName  = lastname;

            PackageDTO dto = new PackageDTO();

            dto.Releasetime = DateTime.Now;
            //?? return View(model);
            return(RedirectToAction("AfterPackageRelease", "Package"));
        }
Example #3
0
        public ActionResult NewReleasePackage(ReleasePackageModel formdata)
        {
            //string firstname = formdata.FirstName;
            //string lastname = formdata.LastName;

            //var model = new ReleasePackageModel();
            //model.Packages = packages;
            //model.FirstName = firstname;
            //model.LastName = lastname;

            NewPackageDTO dto = new NewPackageDTO();

            dto.TrackingID  = formdata.TrackingID;
            dto.Releasetime = DateTime.Now;


            PackageReleaser package_Releaser = new PackageReleaser();

            package_Releaser.ReleasePackage(dto);

            return(RedirectToAction("AfterPackageRelease", "Package"));
        }