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