コード例 #1
0
 public UserController(IBicycleRepository bicycleRepository)
 {
     repository = bicycleRepository;
     var manager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationContext()));            
     var currentUser = manager.FindById(System.Web.HttpContext.Current.User.Identity.GetUserId());
     UserRentId = currentUser.UserRentId;
 }
コード例 #2
0
 public RentController(IBicycleRepository bicycleRepository)
 {
     repository = bicycleRepository;
 }
コード例 #3
0
 public AdminController(IBicycleRepository bicycleRepository)
 {
     repository = bicycleRepository;
 }
コード例 #4
0
 public HomeController(IBicycleRepository bicycleRepository)
 {
     repository = bicycleRepository;
 }