- Data:
- 2009-11-24 12:21:39 (16 years ago)
- Lokalizacja:
- branches/Emisje
- Pliki:
-
- 2 zmodyfikowane
-
. (zmodyfikowane) (1 prop)
-
eCard/eCardMVC/Platnosci/Controllers/AccountController.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/Emisje
- Property svn:mergeinfo
-
old new 1 /branches/Abonament:701-884 1 2 /branches/AutoShopper:815-818 2 3 /branches/ReklamaReorganizacja:568-731 3 4 /tags/BazaReklam_1.1.28:831 4 /trunk:774-8 685 /trunk:774-893
-
- Property svn:mergeinfo
-
branches/Emisje/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs
r866 r895 32 32 public AccountController() 33 33 { 34 _repository = new Repository<vPlatnosciEcard>( );34 _repository = new Repository<vPlatnosciEcard>(new DataContext1()); 35 35 FormsAuth = new FormsAuthenticationService(); 36 36 _context = new PlatnosciDataContext(); … … 57 57 public ActionResult LogOn(string nip, string numer_faktury, string returnUrl, string language) 58 58 { 59 59 60 language = _func.setLanguage(language); 60 61 vPlatnosciEcard platnosc = new vPlatnosciEcard(); … … 65 66 else 66 67 { 67 var Login = _ context.FindInvoiceByNipNumber(nip, numer_faktury).SingleOrDefault();68 var Login = _repository.FindInvoiceByNipNumber(nip, numer_faktury).SingleOrDefault(); 68 69 platnosc = Login; 69 70 if (platnosc == null) return View(); 70 71 } 72 _func.SetUserLogger(nip, numer_faktury); 71 73 72 74 FormsAuth.SignIn(nip, false); 75 73 76 if (!String.IsNullOrEmpty(returnUrl)) 74 77 { 75 78 return Redirect(returnUrl); 76 79 } 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 }); 81 81 } 82 82 public ActionResult LogOff() 83 83 { 84 85 84 FormsAuth.SignOut(); 86 85 return RedirectToAction("LogOn", "Account");
