Pokaż
Ignoruj:
Data:
2009-12-23 11:59:36 (16 years ago)
Autor:
marek
Opis:

re #215

Pliki:
1 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs

    r970 r971  
    66using adMoto.Payments.Core.Data; 
    77using adMoto.Payments.Core.Interfaces; 
    8 using Platnosci.Models; 
     8using adMoto.Payments.Web.Models; 
    99 
    10 namespace Platnosci.Controllers 
     10namespace adMoto.Payments.Web.Controllers 
    1111{ 
    1212    [HandleError] 
     
    1414    { 
    1515        private readonly IRepository<Invoice> _repository; 
    16         private readonly FunkcjePlatnosci _funkcjePlatnosci; 
     16        private readonly PaymentsUtils _paymentsUtils; 
    1717 
    1818        public IFormsAuthentication FormsAuth 
     
    2626            _repository = new Repository<Invoice>(new DataContext()); 
    2727            FormsAuth = new FormsAuthenticationService(); 
    28             _funkcjePlatnosci = new FunkcjePlatnosci(); 
     28            _paymentsUtils = new PaymentsUtils(); 
    2929        } 
    3030 
    31         public AccountController(IFormsAuthentication formsAuth, IRepository<Invoice> repository, FunkcjePlatnosci func) 
     31        public AccountController(IFormsAuthentication formsAuth, IRepository<Invoice> repository, PaymentsUtils func) 
    3232        { 
    3333            _repository = repository; 
    3434            FormsAuth = formsAuth ?? new FormsAuthenticationService(); 
    35             _funkcjePlatnosci = func; 
     35            _paymentsUtils = func; 
    3636        } 
    3737 
     
    4141                return RedirectToAction("LogOn", "Account", new { language = "pl" }); 
    4242 
    43             _funkcjePlatnosci.SetLanguage(language); 
     43            _paymentsUtils.SetLanguage(language); 
    4444            return View(); 
    4545        } 
     
    5050        public ActionResult LogOn(string nip, string numerFaktury, string returnUrl, string language) 
    5151        { 
    52             _funkcjePlatnosci.SetLanguage(language); 
     52            _paymentsUtils.SetLanguage(language); 
    5353            var platnosc = new Invoice(); 
    5454            if (!ValidateLogOn(nip, numerFaktury)) 
     
    6060            platnosc = login; 
    6161            if (platnosc == null) return View(); 
    62             _funkcjePlatnosci.SetUserLogger(nip, numerFaktury); 
     62            _paymentsUtils.SetUserLogger(nip, numerFaktury); 
    6363 
    6464            FormsAuth.SignIn(nip, false); 
     
    9898        } 
    9999    } 
     100 
    100101    public interface IFormsAuthentication 
    101102    {