Exemple #1
0
 public UpLoadFileController(IWebHostEnvironment hostEnvironment, AspCoreRestApiDbContext dbContext)
 {
     _hostEnvironment = hostEnvironment;
     _dbContext       = dbContext;
 }
Exemple #2
0
 public CompanyRepository(AspCoreRestApiDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public EmployeesController(IMapper mapper, AspCoreRestApiDbContext context)
 {
     _mapper  = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }