コード例 #1
0
 public FileController(IHostingEnvironment hostEnvironment,
                       HeritageContext context,
                       IMapper mapper)
 {
     _context         = context;
     _mapper          = mapper;
     _hostEnvironment = hostEnvironment;
     // Set WebRootPath to wwwroot\Files directiry
     _hostEnvironment.WebRootPath =
         System.IO.Path.Combine(
             Directory.GetCurrentDirectory(),
             @"wwwroot\Files");
 }
コード例 #2
0
 //initiate database context
 public EvaluationOptionController(HeritageContext context,
                                   IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
コード例 #3
0
 //initiate database context
 public EvaluationParameterController(HeritageContext context,
                                      IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
コード例 #4
0
 //initiate database context
 public HeritageController(HeritageContext context,
                           IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
コード例 #5
0
 //initiate database context
 public ActivationModeController(HeritageContext context,
                                 IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
コード例 #6
0
 public UserService(HeritageContext context)
 {
     _context = context;
 }