示例#1
0
 public UserController(UserRepository userRepository,
     ReviewRepository reviewRepository, UserService userService, OrdersRepository ordersRepository, GigService gigService)
 {
     _userRepository = userRepository;
     _reviewRepository = reviewRepository;
     _userService = userService;
     _ordersRepository = ordersRepository;
     _gigService = gigService;
 }
示例#2
0
 public AccountsController(CategoryRepository categoryRepository,
     AssetRepository assetRepository,
     UserRepository userRepository, OrdersRepository ordersRepository)
 {
     _categoryRepository = categoryRepository;
     _assetRepository = assetRepository;
     _userRepository = userRepository;
     _ordersRepository = ordersRepository;
 }
 public NotificationsController(NotificationRepository notificationRepository, 
     UserRepository userRepository)
 {
     _notificationRepository = notificationRepository;
     _userRepository = userRepository;
 }
示例#4
0
 public AdminController(UserRepository userRepository, FeedbackRepository feedbackRepository)
 {
     _userRepository = userRepository;
     _feedbackRepository = feedbackRepository;
 }
示例#5
0
 public UserService(UserRepository userRepository, ReviewRepository reviewRepository, UserResponseHistoryRepository userResponseHistoryRepository)
 {
     _userRepository = userRepository;
     _reviewRepository = reviewRepository;
     _userResponseHistoryRepository = userResponseHistoryRepository;
 }
示例#6
0
 public static UserInfoModel GetUserInfo(string username)
 {
     var userRepository = new UserRepository(new GigbucketDbContext());
     return userRepository.GetUserInfo(username);
 }