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)); }
public void DiscardPackageTest() { var package = packageContracts.GetAll().FirstOrDefault(); packageContracts.UpdateStatus(package.BarcodeId, 4); }