Beispiel #1
0
        public IViewComponentResult Invoke(string cellId = "")
        {
            bool   status      = ctx.PackageInCell(cellId);
            var    package     = ctx.PackageRFIDInCell(cellId);
            string packageRFID = "";

            if (package != null)
            {
                packageRFID = package.PackageRFID;
            }
            else
            {
                packageRFID = "Empty";
            }
            CellStatus cellStatus = new CellStatus
            {
                StatusCell  = status,
                PackageRFID = packageRFID
            };

            return(View(cellStatus));
        }