Added session first implementation:

+ Added session in the database and added session controller
+ Added session in authorize attribute/Login
+ Added Logout function
* Refactor database models
This commit is contained in:
Lucio Maranta
2018-01-25 17:26:44 +01:00
parent af6adf1558
commit 44dfe1753b
23 changed files with 255 additions and 82 deletions
+8 -7
View File
@@ -67,14 +67,15 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controllers\FunctionAccessController.cs" />
<Compile Include="Controllers\MachineController.cs" />
<Compile Include="Controllers\FunctionsAccessController.cs" />
<Compile Include="Controllers\MachinesController.cs" />
<Compile Include="Controllers\SessionsController.cs" />
<Compile Include="Controllers\UsersController.cs" />
<Compile Include="Controllers\MachinesUsersController.cs" />
<Compile Include="DatabaseContext.cs" />
<Compile Include="Migrations\201801161604529_InitCreate.cs" />
<Compile Include="Migrations\201801161604529_InitCreate.Designer.cs">
<DependentUpon>201801161604529_InitCreate.cs</DependentUpon>
<Compile Include="Migrations\201801251430146_InitCreate.cs" />
<Compile Include="Migrations\201801251430146_InitCreate.Designer.cs">
<DependentUpon>201801251430146_InitCreate.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
@@ -110,8 +111,8 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Migrations\201801161604529_InitCreate.resx">
<DependentUpon>201801161604529_InitCreate.cs</DependentUpon>
<EmbeddedResource Include="Migrations\201801251430146_InitCreate.resx">
<DependentUpon>201801251430146_InitCreate.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />