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)); }
public SubjectController(ISubjectCategoryService subjectCategoryService, ISubjectService subjectService, UserManager <IdentityUser> userManager) { _subjectCategoryService = subjectCategoryService; _subjectService = subjectService; _userManager = userManager; }