Beispiel #1
0
 public UserRepository(NewsDbContext dbContext)
 {
     // Implement AddUser method which should be used to save a new user.
     // Implement DeleteUser method which should be used to delete an existing user.
     // Implement GetUser method which should be used to get a userprofile complete detail by userId.
     // Implement UpdateUser method which should be used to update an existing user.
     _dbContext = dbContext;
 }
Beispiel #2
0
 /// <summary>
 /// Parametrised constructor for injecting dbcontext property
 /// </summary>
 /// <param name="dbContext"></param>
 public UserRepository(NewsDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Beispiel #3
0
 public ReminderRepository(NewsDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #4
0
 public NewsRepository(NewsDbContext dbContext)
 {
     _dbContext = dbContext;
 }