コード例 #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();
 }