public UsersController(INotesBL noteBL, IUserBL userBL, IConfiguration configuration)
 {
     //to get an access of IUserBL
     this.userBL   = userBL;
     this.noteBL   = noteBL;
     Configuration = configuration;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public NotesController(INotesBL dataRepository)
 {
     _notesBL = dataRepository;
 }
Exemple #4
0
 /// <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;
 }
Exemple #5
0
 public NotesController(INotesBL note)
 {
     this.note = note;
 }