Skip to content

Commit

Permalink
Restructurized folders
Browse files Browse the repository at this point in the history
  • Loading branch information
valdisiljuconoks authored and valdisiljuconoks committed Nov 5, 2016
1 parent 01773ed commit f7199e9
Show file tree
Hide file tree
Showing 186 changed files with 7,930 additions and 7,929 deletions.
2 changes: 1 addition & 1 deletion .vs/config/applicationhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
</site>
<site name="DbLocalizationProvider.MvcSample" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\valdis\GitHub\LocalizationProvider\DbLocalizationProvider.MvcSample" />
<virtualDirectory path="/" physicalPath="C:\Users\valdis\GitHub\LocalizationProvider\Tests\DbLocalizationProvider.MvcSample" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:14791:localhost" />
Expand Down
17 changes: 9 additions & 8 deletions DbLocalizationProvider.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,38 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider", "DbLocalizationProvider\DbLocalizationProvider.csproj", "{17CA5D23-46C3-44B1-8FA6-0F40B2E447BA}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider", "src\DbLocalizationProvider\DbLocalizationProvider.csproj", "{17CA5D23-46C3-44B1-8FA6-0F40B2E447BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.AdminUI", "DbLocalizationProvider.AdminUI\DbLocalizationProvider.AdminUI.csproj", "{8F0618D8-8200-45E9-9D1E-B268E98E0A84}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.AdminUI", "src\DbLocalizationProvider.AdminUI\DbLocalizationProvider.AdminUI.csproj", "{8F0618D8-8200-45E9-9D1E-B268E98E0A84}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5497F127-3A46-43F3-8D60-0FC778DF0A86}"
ProjectSection(SolutionItems) = preProject
build-packages.ps1 = build-packages.ps1
CommonAssemblyInfo.cs = CommonAssemblyInfo.cs
src\CommonAssemblyInfo.cs = src\CommonAssemblyInfo.cs
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.MigrationTool", "DbLocalizationProvider.MigrationTool\DbLocalizationProvider.MigrationTool.csproj", "{5227C16B-342C-4097-A9ED-295CDD164A61}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.MigrationTool", "src\DbLocalizationProvider.MigrationTool\DbLocalizationProvider.MigrationTool.csproj", "{5227C16B-342C-4097-A9ED-295CDD164A61}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{E32C93BC-E83C-4405-8970-BBBE422DAFC3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.MigrationTool.Tests", "Tests\DbLocalizationProvider.MigrationTool.Tests\DbLocalizationProvider.MigrationTool.Tests.csproj", "{E8441601-E1FD-49F1-B94A-B1F62C2D6433}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.Tests", "Tests\DbLocalizationProvider.Tests\DbLocalizationProvider.Tests.csproj", "{0075E83B-79A1-4957-818C-CF9FDCAE80E5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.EPiServer", "DbLocalizationProvider.EPiServer\DbLocalizationProvider.EPiServer.csproj", "{86CBFEC7-8763-4BBA-B760-0A0C977C8C36}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.EPiServer", "src\DbLocalizationProvider.EPiServer\DbLocalizationProvider.EPiServer.csproj", "{86CBFEC7-8763-4BBA-B760-0A0C977C8C36}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.MvcSample", "DbLocalizationProvider.MvcSample\DbLocalizationProvider.MvcSample.csproj", "{78C3B303-08D5-4F40-AE7D-16A23D9E8694}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.MvcSample", "Tests\DbLocalizationProvider.MvcSample\DbLocalizationProvider.MvcSample.csproj", "{78C3B303-08D5-4F40-AE7D-16A23D9E8694}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.AdminUI.EPiServer", "DbLocalizationProvider.AdminUI.EPiServer\DbLocalizationProvider.AdminUI.EPiServer.csproj", "{AA5FCD04-8113-4F0B-8E8E-5CF365B3D245}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.AdminUI.EPiServer", "src\DbLocalizationProvider.AdminUI.EPiServer\DbLocalizationProvider.AdminUI.EPiServer.csproj", "{AA5FCD04-8113-4F0B-8E8E-5CF365B3D245}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "EPiServer", "EPiServer", "{B67B1AE9-0FD1-4758-B380-ABD298B65EA4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{01DDE351-7CF0-4E57-84F4-CF6E349C80A0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.EPiServer.Sample", "Tests\DbLocalizationProvider.EPiServer.Sample\DbLocalizationProvider.EPiServer.Sample.csproj", "{9482069F-3E36-4908-912D-26A84941C79F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.Abstractions", "DbLocalizationProvider.Abstractions\DbLocalizationProvider.Abstractions.csproj", "{5453BED3-0A29-414C-9535-57264C1F37E9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbLocalizationProvider.Abstractions", "src\DbLocalizationProvider.Abstractions\DbLocalizationProvider.Abstractions.csproj", "{5453BED3-0A29-414C-9535-57264C1F37E9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,15 @@
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\DbLocalizationProvider.AdminUI.EPiServer\DbLocalizationProvider.AdminUI.EPiServer.csproj">
<ProjectReference Include="..\..\src\DbLocalizationProvider.AdminUI.EPiServer\DbLocalizationProvider.AdminUI.EPiServer.csproj">
<Project>{aa5fcd04-8113-4f0b-8e8e-5cf365b3d245}</Project>
<Name>DbLocalizationProvider.AdminUI.EPiServer</Name>
</ProjectReference>
<ProjectReference Include="..\..\DbLocalizationProvider.EPiServer\DbLocalizationProvider.EPiServer.csproj">
<ProjectReference Include="..\..\src\DbLocalizationProvider.EPiServer\DbLocalizationProvider.EPiServer.csproj">
<Project>{86cbfec7-8763-4bba-b760-0a0c977c8c36}</Project>
<Name>DbLocalizationProvider.EPiServer</Name>
</ProjectReference>
<ProjectReference Include="..\..\DbLocalizationProvider\DbLocalizationProvider.csproj">
<ProjectReference Include="..\..\src\DbLocalizationProvider\DbLocalizationProvider.csproj">
<Project>{17ca5d23-46c3-44b1-8fa6-0f40b2e447ba}</Project>
<Name>DbLocalizationProvider</Name>
</ProjectReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\DbLocalizationProvider\DbLocalizationProvider.csproj">
<ProjectReference Include="..\..\src\DbLocalizationProvider\DbLocalizationProvider.csproj">
<Project>{17ca5d23-46c3-44b1-8fa6-0f40b2e447ba}</Project>
<Name>DbLocalizationProvider</Name>
</ProjectReference>
<ProjectReference Include="..\..\DbLocalizationProvider.MigrationTool\DbLocalizationProvider.MigrationTool.csproj">
<ProjectReference Include="..\..\src\DbLocalizationProvider.MigrationTool\DbLocalizationProvider.MigrationTool.csproj">
<Project>{5227c16b-342c-4097-a9ed-295cdd164a61}</Project>
<Name>DbLocalizationProvider.MigrationTool</Name>
</ProjectReference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
using System.Globalization;
using System.Threading;
using System.Web.Mvc;
using DbLocalizationProvider.MvcSample.Models;

namespace DbLocalizationProvider.MvcSample.Controllers
{
public class HomeController : Controller
{
public ActionResult Index(string l)
{
if (!string.IsNullOrEmpty(l))
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo(l);
}

return View(new HomeViewModel());
}

[HttpPost]
public ActionResult Index(HomeViewModel model)
{
if(!ModelState.IsValid)
{
return View(model);
}

return View(new HomeViewModel());
}
}
}
using System.Globalization;
using System.Threading;
using System.Web.Mvc;
using DbLocalizationProvider.MvcSample.Models;

namespace DbLocalizationProvider.MvcSample.Controllers
{
public class HomeController : Controller
{
public ActionResult Index(string l)
{
if (!string.IsNullOrEmpty(l))
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo(l);
}

return View(new HomeViewModel());
}

[HttpPost]
public ActionResult Index(HomeViewModel model)
{
if(!ModelState.IsValid)
{
return View(model);
}

return View(new HomeViewModel());
}
}
}
Loading

0 comments on commit f7199e9

Please sign in to comment.