Zbiór zmian 896 dla trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs
- Data:
- 2009-11-24 12:24:57 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs
r881 r896 30 30 public const string KODOWANIE = "ISO-8859-2"; 31 31 private int ORDERNUMBER = 122; 32 private string merchantId; 32 33 33 private string merchantId; 34 private readonly PlatnosciDataContext _context; 35 private readonly IRepository<PlatnosciEcard> _rep; 34 private readonly IRepository<vPlatnosciEcard> _repVPayment; 35 private readonly IRepository<PlatnosciEcard> _repPayment; 36 36 private FunkcjePlatnosci _func; 37 37 38 38 public MerchantController() 39 { 40 _rep = new Repository<PlatnosciEcard>(new DataContext1());41 _ context = new PlatnosciDataContext();39 { 40 _repVPayment = new Repository<vPlatnosciEcard>(new DataContext1()); 41 _repPayment = new Repository<PlatnosciEcard>(new DataContext1()); 42 42 _func = new FunkcjePlatnosci(); 43 43 } … … 48 48 49 49 int id1 = Convert.ToInt32(payer.Id_faktury); 50 vPlatnosciEcard platnosc = _rep .FindInvoiceById(id1).SingleOrDefault();50 vPlatnosciEcard platnosc = _repVPayment.Find(p => p.ID_faktury == id1).SingleOrDefault(); 51 51 52 52 if (platnosc == null) … … 115 115 if (platnosc != null) 116 116 { 117 // _rep.Insert(platnosc);117 //_repPayment.Insert(platnosc); 118 118 return true; 119 119 }
