//IRayonService postService = null; // GET: Productt public ProducttController() { Service = new ProductService(); ServiceRayon = new RayonService(); US = new UserService(); //rayonService = new rayonService(); }
public RayonController() { Service = new RayonService(); ServiceProduct = new ProductService(); US = new UserService(); //rayonService = new rayonService(); }
public ProductFrontController() { Service = new ProductService(); ServiceRayon = new RayonService(); /* Product p = new Product * { * imageP = " ", * barcode = " ", * description = "A nice Book ", * //CategorieP = CategorieP * dateC = DateTime.Today , * dateF = DateTime.Today , * marque = "IBM" , * price = 12.0 , * qte = 100 , * CategorieP = Domain.Entities.CategorieP.bananes , * Nom = "Game Of Thrones " * * }; * Product pa = new Product * { * imageP = " ", * barcode = " ", * description = "A nice Banana ", * //CategorieP = CategorieP * dateC = DateTime.Today, * dateF = DateTime.Today, * marque = "Ali ", * price = 15.0, * qte = 100, * CategorieP = Domain.Entities.CategorieP.bananes , * Nom = "Bananes" * * }; * Product pc = new Product * { * imageP = " ", * barcode = " ", * description = "A nice Product ", * //CategorieP = CategorieP * dateC = DateTime.Today, * dateF = DateTime.Today, * marque = "Dell", * price = 500.0, * qte = 100, * CategorieP = Domain.Entities.CategorieP.bananes , * Nom = "Computer Dell " * * }; * Product pd = new Product * { * imageP = " ", * barcode = " ", * description = "A nice MacBook Pro ", * //CategorieP = CategorieP * dateC = DateTime.Today, * dateF = DateTime.Today, * marque = "Mac ", * price = 1000.0, * qte = 100, * CategorieP = Domain.Entities.CategorieP.bananes , * Nom = "MacBook Pro " * * }; * Service.Add(p); * Service.Add(pa); * Service.Add(pc); * Service.Add(pd); * Service.Commit(); */ }