Zbiór zmian 970 dla trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs
- Data:
- 2009-12-23 11:26:06 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs (zmodyfikowane) (6 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs
r969 r970 1 1 using System; 2 2 using System.Linq; 3 using System.Web;4 3 using System.Web.Mvc; 4 using adMoto.Payments.Core; 5 using adMoto.Payments.Core.Data; 6 using adMoto.Payments.Core.Interfaces; 5 7 using Elmah; 6 8 using Platnosci.Models; 7 using Platnosci.Core.Linq;8 using Platnosci.Core.Interface;9 using ApplicationException=Elmah.ApplicationException;10 9 11 10 namespace Platnosci.Controllers 12 11 { 13 14 //[Authorize]15 12 public class PlatnoscController : Controller 16 13 { 17 14 public const string ISPAID = "payment_deposited"; //transakcja potwierdzona do rozliczenia 18 private readonly IRepository< vPlatnosciEcard> _repVPayment;15 private readonly IRepository<Invoice> _repVPayment; 19 16 private readonly IRepository<PlatnosciEcard> _repPayment; 20 17 private readonly IRepository<PotwierdzeniaEcard> _repConfirm; … … 24 21 public PlatnoscController() 25 22 { 26 _repVPayment = new Repository< vPlatnosciEcard>(new DataContext());23 _repVPayment = new Repository<Invoice>(new DataContext()); 27 24 _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 28 25 _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext()); … … 30 27 _translateManager = new Translation(); 31 28 } 32 public PlatnoscController(IRepository< vPlatnosciEcard> repVPayment, IRepository<PlatnosciEcard> repPayment, IRepository<PotwierdzeniaEcard> repConfirm, ITranslateManager translate)29 public PlatnoscController(IRepository<Invoice> repVPayment, IRepository<PlatnosciEcard> repPayment, IRepository<PotwierdzeniaEcard> repConfirm, ITranslateManager translate) 33 30 { 34 31 _repVPayment = repVPayment; … … 64 61 return View(invoiceDeatailsViewData); 65 62 } 63 66 64 [Authorize] 67 65 [AcceptVerbs(HttpVerbs.Post)] … … 139 137 public ActionResult Status() 140 138 { 141 ErrorSignal.FromCurrentContext().Raise(new Exception(), System.Web.HttpContext.Current); 139 if (System.Web.HttpContext.Current != null) 140 ErrorSignal.FromCurrentContext().Raise(new Exception(), System.Web.HttpContext.Current); 142 141 143 142 var potwierdzenie = new PotwierdzeniaEcard(); … … 201 200 } 202 201 203 private InvoiceDetailsViewData InitInvoiceDetailsViewData( vPlatnosciEcardplatnosc)202 private InvoiceDetailsViewData InitInvoiceDetailsViewData(Invoice platnosc) 204 203 { 205 204 var invoiceDeatailsViewData = new InvoiceDetailsViewData();
