diff options
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs')
| -rw-r--r-- | Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs index 383a59850..aea5da254 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs @@ -48,7 +48,7 @@ namespace Tango.MachineService.Controllers IHashGenerator hash = new BasicHashGenerator(); var password = hash.Encrypt(request.Password); - using (var db = ObservablesContextHelper.CreateContext()) + using (var db = ObservablesWebContext.CreateContext()) { user = new UserBuilder(db).Set(x => x.Email.ToLower() == request.Email.ToLower() && x.Password == password).WithRolesAndPermissions().WithDeleted().Build(); @@ -98,7 +98,7 @@ namespace Tango.MachineService.Controllers ValidateCollectionAndKey(collection, key); - using (var db = ObservablesContextHelper.CreateContext()) + using (var db = ObservablesWebContext.CreateContext()) { if (sn != null) { @@ -167,7 +167,7 @@ namespace Tango.MachineService.Controllers ValidateCollectionAndKey(item.Collection, item.Key); - using (var db = ObservablesContextHelper.CreateContext()) + using (var db = ObservablesWebContext.CreateContext()) { if (item.MachineSerialNumber != null) { |
