Config reorganization
General refactor
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
using Step.Model.DatabaseModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Step.Database.Controllers
|
||||
{
|
||||
@@ -38,7 +35,7 @@ namespace Step.Database.Controllers
|
||||
.RemoveRange( // Delete rows
|
||||
dbCtx
|
||||
.Sessions
|
||||
.Where(x => x.MachineUserId == machineUserId) // Find all the session with matching machineUserId
|
||||
.Where(x => x.MachineUserId == machineUserId) // Find all the session with matching machineUserId
|
||||
);
|
||||
// Commit changes
|
||||
dbCtx.SaveChanges();
|
||||
@@ -70,4 +67,4 @@ namespace Step.Database.Controllers
|
||||
dbCtx.SaveChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user