コード例 #1
0
        public ActionResult Index(List <PackageViewModel> Models)
        {
            var packagesnotFound = Models.Where(x => x.Found == false);

            foreach (var VARIABLE in packagesnotFound)
            {
                packagesContracts.UpdateStatus(VARIABLE.BarcodeId, 2);
            }

            return(View(Models));
        }
コード例 #2
0
        public void DiscardPackageTest()
        {
            var package = packageContracts.GetAll().FirstOrDefault();

            packageContracts.UpdateStatus(package.BarcodeId, 4);
        }