Exemple #1
0
 public BookService(LMSContext context,
                    IAuthorService authorService,
                    ISubjectCategoryService subject)
 {
     _context        = context ?? throw new ArgumentNullException(nameof(context));
     _authorService  = authorService ?? throw new ArgumentNullException(nameof(authorService));
     _subjectService = subject ?? throw new ArgumentNullException(nameof(subject));
 }
Exemple #2
0
 public SubjectController(ISubjectCategoryService subjectCategoryService, ISubjectService subjectService, UserManager <IdentityUser> userManager)
 {
     _subjectCategoryService = subjectCategoryService;
     _subjectService         = subjectService;
     _userManager            = userManager;
 }