-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
valdisiljuconoks
authored and
valdisiljuconoks
committed
Nov 5, 2016
1 parent
01773ed
commit f7199e9
Showing
186 changed files
with
7,930 additions
and
7,929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
62 changes: 31 additions & 31 deletions
62
...r.MvcSample/Controllers/HomeController.cs → ...r.MvcSample/Controllers/HomeController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} | ||
} |
Oops, something went wrong.