Exemplo n.º 1
0
 //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/";
 }
Exemplo n.º 3
0
 //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/";
 }