public UpLoadFileController(IWebHostEnvironment hostEnvironment, AspCoreRestApiDbContext dbContext) { _hostEnvironment = hostEnvironment; _dbContext = dbContext; }
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)); }