Ejemplo n.º 1
0
        public ActionResult IndexD()
        {
            var Model = new Toymanager
            {
                toys    = db.Toy.Include(t => t.Categories).Include(t => t.Producers).Where(t => t.ToysName != "Deleted Toy").ToList(),
                deleted = db.Toy.Include(t => t.Categories).Include(t => t.Producers).Where(t => t.ToysName == "Deleted Toy").ToList()
            };

            return(View(Model));
        }
Ejemplo n.º 2
0
        public ActionResult IndexD()
        {
            var toy  = db.Toy.Include(t => t.Categories).Include(t => t.Producers).Where(t => t.ToysName != "Deleted Toy").ToList();
            var dtoy = db.Toy.Include(t => t.Categories).Include(t => t.Producers).Where(t => t.ToysName == "Deleted Toy").ToList();
            var T    = new Toymanager
            {
                t = toy,
                d = dtoy
            };

            return(View(T));
        }