Pokaż
Ignoruj:
Data:
2009-11-24 12:21:39 (16 years ago)
Autor:
sylwek
Opis:

Re #195 merged with latest trunk

Lokalizacja:
branches/Emisje
Pliki:
2 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/Emisje

    • Property svn:mergeinfo
      •  

        old new  
         1/branches/Abonament:701-884 
        12/branches/AutoShopper:815-818 
        23/branches/ReklamaReorganizacja:568-731 
        34/tags/BazaReklam_1.1.28:831 
        4 /trunk:774-868 
         5/trunk:774-893 
  • branches/Emisje/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs

    r866 r895  
    3232        public AccountController() 
    3333        { 
    34             _repository = new Repository<vPlatnosciEcard>(); 
     34            _repository = new Repository<vPlatnosciEcard>(new DataContext1()); 
    3535            FormsAuth = new FormsAuthenticationService(); 
    3636            _context = new PlatnosciDataContext(); 
     
    5757        public ActionResult LogOn(string nip, string numer_faktury, string returnUrl, string language) 
    5858        { 
     59 
    5960            language = _func.setLanguage(language); 
    6061            vPlatnosciEcard platnosc = new vPlatnosciEcard();     
     
    6566            else 
    6667            { 
    67                 var Login = _context.FindInvoiceByNipNumber(nip, numer_faktury).SingleOrDefault(); 
     68                var Login = _repository.FindInvoiceByNipNumber(nip, numer_faktury).SingleOrDefault(); 
    6869                platnosc = Login; 
    6970                if (platnosc == null) return View(); 
    7071            } 
     72            _func.SetUserLogger(nip, numer_faktury); 
    7173 
    7274            FormsAuth.SignIn(nip, false); 
     75 
    7376            if (!String.IsNullOrEmpty(returnUrl)) 
    7477            { 
    7578                return Redirect(returnUrl); 
    7679            } 
    77             else 
    78             { 
    79                return RedirectToAction("Show", "Platnosc", new { id = platnosc.ID_faktury}); 
    80             } 
     80            else return RedirectToAction("Show", "Platnosc", new { id = platnosc.ID_faktury });          
    8181        } 
    8282        public ActionResult LogOff() 
    8383        { 
    84  
    8584            FormsAuth.SignOut(); 
    8685            return RedirectToAction("LogOn", "Account");