//Constructor, requires reference to the database context, and hosting environment, Sets File paths public ImageController(ConnectedDevicesContext conn) { filePath = "wwwroot/images/"; _context = conn; //Console.WriteLine(env.EnvironmentName); }
//Constructor, requires reference to the database context, and hosting environment, Sets File paths public DeviceDataController(ConnectedDevicesContext context) { _context = context; filePath = "wwwroot/Stats/"; }
//Constructor, requires reference to the database context, and hosting environment, Sets File paths public DeviceRegistrationController(ConnectedDevicesContext context) { _context = context; StatsfilePath = "wwwroot/Stats/"; ImagefilePath = "wwwroot/images/"; }