Пример #1
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager )
 {
     sendMail = new SendMail();
     UserManager = userManager;
     SignInManager = signInManager;
     usService = new UserService();
 }
Пример #2
0
 private ActionResult RedirectToLogin(string UserId)
 {
     DriverService dservice = new DriverService();
     UserService us = new UserService();
     string UserType= us.GetUserType(UserId);
     if (UserType == "Driver")
     {
         return RedirectToAction("Index", "Driver", new { area = "En" });
     }
     else if (UserType == "Passenger")
     {
         return RedirectToAction("Index", "Passenger", new { area = "En" });
     }
     return RedirectToAction("Index", "Home");
 }
Пример #3
0
 public AccountController()
 {
     usService = new UserService();
     sendMail = new SendMail();
 }