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

re #215 - dodanie nowego projektu z lepsza nazwa i typem projektu

Pliki:
1 zmodyfikowane

Legenda:

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

    r950 r970  
    33using System.Web.Mvc; 
    44using System.Web.Security; 
    5 using Platnosci.Core.Linq; 
     5using adMoto.Payments.Core; 
     6using adMoto.Payments.Core.Data; 
     7using adMoto.Payments.Core.Interfaces; 
    68using Platnosci.Models; 
    7 using Platnosci.Core.Interface; 
    89 
    910namespace Platnosci.Controllers 
     
    1213    public class AccountController : Controller 
    1314    { 
    14         private readonly IRepository<vPlatnosciEcard> _repository; 
     15        private readonly IRepository<Invoice> _repository; 
    1516        private readonly FunkcjePlatnosci _funkcjePlatnosci; 
    1617 
     
    2324        public AccountController() 
    2425        { 
    25             _repository = new Repository<vPlatnosciEcard>(new DataContext()); 
     26            _repository = new Repository<Invoice>(new DataContext()); 
    2627            FormsAuth = new FormsAuthenticationService(); 
    2728            _funkcjePlatnosci = new FunkcjePlatnosci(); 
    2829        } 
    2930 
    30         public AccountController(IFormsAuthentication formsAuth, IRepository<vPlatnosciEcard> repository, FunkcjePlatnosci func) 
     31        public AccountController(IFormsAuthentication formsAuth, IRepository<Invoice> repository, FunkcjePlatnosci func) 
    3132        { 
    3233            _repository = repository; 
     
    5051        { 
    5152            _funkcjePlatnosci.SetLanguage(language); 
    52             var platnosc = new vPlatnosciEcard(); 
     53            var platnosc = new Invoice(); 
    5354            if (!ValidateLogOn(nip, numerFaktury)) 
    5455            {