From d91db45c47a1d2d1d050fdafe8f4eb44951a883f Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sat, 18 May 2024 20:05:10 +0300 Subject: FSE/RSM MachineService Provides full capability. --- .../Web/Tango.MachineService/Controllers/DataStoreController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs') 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) { -- cgit v1.3.1