Config reorganization

General refactor
This commit is contained in:
Lucio Maranta
2018-02-09 14:59:24 +01:00
parent 6c9bdbaede
commit 99c2e8dc01
17 changed files with 183 additions and 130 deletions
@@ -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();
}
}
}
}