public UserServices(IDbGenericRepository<User, string> userRepos, IDbRepository<UserComment> userCommentRepos) { this.userRepos = userRepos; this.dbContext = new TripDestinationDbContext(); this.userManager = new UserManager<User>(new UserStore<User>(this.dbContext)); this.userCommentRepos = userCommentRepos; }
/// <summary> /// Constructor /// </summary> /// <param name="userRepo">Repo to help interact with the users db records</param> /// <param name="wordsRepo">Repo to help intercat with the words db records</param> /// <param name="categoriesRepo">Repo to help interact with the categories db records</param> public GameController(IDbGenericRepository <ApplicationUser, string> userRepo, IDbRepository <Word> wordsRepo, IDbRepository <WordCategory> categoriesRepo) { users = userRepo; words = wordsRepo; categories = categoriesRepo; }
public ParticipantService(IDbGenericRepository<Participant> participants) { this.participants = participants; }
public UserService(IDbGenericRepository<User> users, IParticipantService participants) { this.users = users; this.participants = participants; }
public QuestionAnswerService(IDbGenericRepository<QuestionAnswer> questionAndAnswers) { this.questionAndAnswers = questionAndAnswers; }
public PhotoServices(IDbGenericRepository<Photo, int> photoRepos) { this.photoRepos = photoRepos; }
public ParticipantAnswerService(IDbGenericRepository<ParticipantAnswer> userAnswers) { this.userAnswers = userAnswers; }
public UsersService(IDbGenericRepository<User, string> users) { this.users = users; }
public QuestionService(IDbGenericRepository<Question> questions, IIdentifierProvider identifierProvider) { this.questions = questions; this.identifierProvider = identifierProvider; }
//private readonly UserStore userStore = new UserStore<ApplicationUser>(new ApplicationDbContext()); public OrganisationsService(IDbRepository<Organisation> organisations, IDbGenericRepository<ApplicationUser, string> users) { this.organisations = organisations; this.users = users; }