aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2024-05-18 20:05:10 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2024-05-18 20:05:10 +0300
commitd91db45c47a1d2d1d050fdafe8f4eb44951a883f (patch)
tree1437e1f0f7ea91dae53e59f7f605a3e603ea3926 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs
parentfd061c7cb7f243d562913d496223830bcf83b7a9 (diff)
downloadTango-d91db45c47a1d2d1d050fdafe8f4eb44951a883f.tar.gz
Tango-d91db45c47a1d2d1d050fdafe8f4eb44951a883f.zip
FSE/RSM MachineService Provides full capability.
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/DataStoreController.cs6
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)
{