public ProjectsController(SpartaDBContext context)
 {
     _context = context;
 }
Example #2
0
 public ConsultantsController(SpartaDBContext context)
 {
     _context = context;
 }
 public TrainersController(SpartaDBContext context)
 {
     _context = context;
 }
Example #4
0
 public CoursesController(SpartaDBContext context)
 {
     _context = context;
 }
 public CategoriesController(SpartaDBContext context, ICategoryRepo categoryRepo, IMapper mapper)
 {
     _mapper       = mapper;
     _categoryRepo = categoryRepo;
     _context      = context;
 }
Example #6
0
 public StudentRepo(SpartaDBContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Example #7
0
 public StudentsController(SpartaDBContext context, IStudentRepo studentRepo, IMapper mapper)
 {
     _context     = context;
     _studentRepo = studentRepo;
     _mapper      = mapper;
 }