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(); }
public ActionResult Create(pack p) { try { IPacksService test = new PacksService(); p.datemiseenligne = DateTime.Now; test.Add(p); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Create(pack p) { try { IPacksService test = new PacksService(); p.datemiseenligne = DateTime.Now; test.Add(p); return(RedirectToAction("Index")); } catch { return(View()); } }
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(); }