public UsersController(INotesBL noteBL, IUserBL userBL, IConfiguration configuration) { //to get an access of IUserBL this.userBL = userBL; this.noteBL = noteBL; Configuration = configuration; }
public NotesController(INotesBL notesBL, IConfiguration configuration, IDistributedCache distributedCache) { //Constructor n passing an object to controller //to get an access of IEmployeeBL this.notesBL = notesBL; Configuration = configuration; this.distributedCache = distributedCache; }
public NotesController(INotesBL dataRepository) { _notesBL = dataRepository; }
/// <summary> /// Initializes a new instance of the <see cref="NotesController"/> class. /// </summary> /// <param name="note">The note.</param> public NotesController(INotesBL note, IConfiguration configuration) { this.note = note; this.configuration = configuration; }
public NotesController(INotesBL note) { this.note = note; }