public static Device GetDeviceInternal(HomeApplianceControlContext context, string deviceId, Assertion assertion)
        {
            var device = context.Devices.SingleOrDefault(d => d.Id == deviceId);

            Assert(device, assertion);
            return(device);
        }
Esempio n. 2
0
 public DeviceController(HomeApplianceControlContext context)
 {
     this.context = context;
 }
 public HomeApplianceController(HomeApplianceControlContext context, CallerHelperManager callerHelperManager)
 {
     this.context        = context;
     CallerHelperManager = callerHelperManager;
 }