Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Parametrised constructor for injecting dbcontext property
 /// </summary>
 /// <param name="dbContext"></param>
 public UserRepository(NewsDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Ejemplo n.º 3
0
 public ReminderRepository(NewsDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Ejemplo n.º 4
0
 public NewsRepository(NewsDbContext dbContext)
 {
     _dbContext = dbContext;
 }