public ActionResult CreatePost(CreateTransliterationViewModel viewModel) { if (!ModelState.IsValid) { return(View(viewModel)); } _transliterationService.Create(viewModel.CultureFrom, viewModel.CultureTo, viewModel.Rules); return(RedirectToAction("Index")); }
public ActionResult Create() { var viewModel = new CreateTransliterationViewModel(); return(View(viewModel)); }