Exemplo n.º 1
0
        public IActionResult LinkStitchingunitWarehouse()
        {
            if (HttpContext.Session.GetString("Id") == null)
            {
                HttpContext.Session.Clear();
                return(RedirectToAction("Index", "Account"));
            }



            Gettablestitchingunitwarehouse            get = new Gettablestitchingunitwarehouse(_context);
            IEnumerable <Tablestitchingunitwarehouse> bussinessEntitiesList = get.gettable();

            GetEntity ga = new GetEntity(_context);



            IEnumerable <BusinessEntity> stitchingunitnotassociated = ga.getnotassociatedstitchingunit();

            ViewData["stitchingunitfree"] = stitchingunitnotassociated;
            IEnumerable <BusinessEntity> warehousenotassociated = ga.getnotassociatedwarehouse();

            ViewData["warehousefree"]  = warehousenotassociated;
            ViewData["tablestitching"] = bussinessEntitiesList;
            return(View());
        }