Example #1
0
 public AdminController()
 {
     context     = new ShopContext();
     CurrentGood = new BusinessGood();
     if (BusinessGoods == null)
     {
         BusinessGoods = new List <BusinessGood>();
         BusinessGood.Autofill(BusinessGoods);
     }
 }
Example #2
0
 public ClientController()
 {
     context       = new ShopContext();
     BusinessGoods = new List <BusinessGood>();
     BusinessGood.Autofill(BusinessGoods);
 }