Пример #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();
        }
Пример #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();
            }
        }
Пример #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());
            }
        }
Пример #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();
        }