Zbiór zmian 971 dla trunk/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs
- Data:
- 2009-12-23 11:59:36 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs (zmodyfikowane) (7 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs
r970 r971 6 6 using adMoto.Payments.Core.Data; 7 7 using adMoto.Payments.Core.Interfaces; 8 using Platnosci.Models;8 using adMoto.Payments.Web.Models; 9 9 10 namespace Platnosci.Controllers10 namespace adMoto.Payments.Web.Controllers 11 11 { 12 12 [HandleError] … … 14 14 { 15 15 private readonly IRepository<Invoice> _repository; 16 private readonly FunkcjePlatnosci _funkcjePlatnosci;16 private readonly PaymentsUtils _paymentsUtils; 17 17 18 18 public IFormsAuthentication FormsAuth … … 26 26 _repository = new Repository<Invoice>(new DataContext()); 27 27 FormsAuth = new FormsAuthenticationService(); 28 _ funkcjePlatnosci = new FunkcjePlatnosci();28 _paymentsUtils = new PaymentsUtils(); 29 29 } 30 30 31 public AccountController(IFormsAuthentication formsAuth, IRepository<Invoice> repository, FunkcjePlatnoscifunc)31 public AccountController(IFormsAuthentication formsAuth, IRepository<Invoice> repository, PaymentsUtils func) 32 32 { 33 33 _repository = repository; 34 34 FormsAuth = formsAuth ?? new FormsAuthenticationService(); 35 _ funkcjePlatnosci= func;35 _paymentsUtils = func; 36 36 } 37 37 … … 41 41 return RedirectToAction("LogOn", "Account", new { language = "pl" }); 42 42 43 _ funkcjePlatnosci.SetLanguage(language);43 _paymentsUtils.SetLanguage(language); 44 44 return View(); 45 45 } … … 50 50 public ActionResult LogOn(string nip, string numerFaktury, string returnUrl, string language) 51 51 { 52 _ funkcjePlatnosci.SetLanguage(language);52 _paymentsUtils.SetLanguage(language); 53 53 var platnosc = new Invoice(); 54 54 if (!ValidateLogOn(nip, numerFaktury)) … … 60 60 platnosc = login; 61 61 if (platnosc == null) return View(); 62 _ funkcjePlatnosci.SetUserLogger(nip, numerFaktury);62 _paymentsUtils.SetUserLogger(nip, numerFaktury); 63 63 64 64 FormsAuth.SignIn(nip, false); … … 98 98 } 99 99 } 100 100 101 public interface IFormsAuthentication 101 102 {
