Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // ISimpleMemberService test = new SimpleMemberService();
            //    test.Add(new simplemember {DTYPE="ActiveMember",email="*****@*****.**",name="momo",
               //    password="******",server="euw",summonerName="sdf",surname="fd",username="******",xp=60,approved=true,phone=4654,role="kljlkj"});

            IPacksService test = new PacksService();
            test.Add(new pack { category = "az",datemiseenligne= new DateTime(),name="jlkj",price=50,quantity=65 });

            Console.WriteLine("aaaaaaaaaaaa");
            Console.ReadKey();
        }
Exemplo n.º 2
0
        public ActionResult Create(pack p)
        {
            try
            {
                IPacksService test = new PacksService();
                p.datemiseenligne = DateTime.Now;
                test.Add(p);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
Exemplo n.º 3
0
        public ActionResult Create(pack p)
        {
            try
            {
                IPacksService test = new PacksService();
                p.datemiseenligne = DateTime.Now;
                test.Add(p);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            // ISimpleMemberService test = new SimpleMemberService();
            //    test.Add(new simplemember {DTYPE="ActiveMember",email="*****@*****.**",name="momo",
            //    password="******",server="euw",summonerName="sdf",surname="fd",username="******",xp=60,approved=true,phone=4654,role="kljlkj"});

            IPacksService test = new PacksService();

            test.Add(new pack {
                category = "az", datemiseenligne = new DateTime(), name = "jlkj", price = 50, quantity = 65
            });


            Console.WriteLine("aaaaaaaaaaaa");
            Console.ReadKey();
        }