public ActionResult Create() { var empty = new LanguageWordViewModel(); var data = empty.ToVM(); return(View(data)); }
public ActionResult Create(LanguageWordViewModel languageWord) { if (!ModelState.IsValid) { ErrorNotification("Kayıt Eklenemedi!"); return(RedirectToAction("Create")); } _languageWordService.Add(new LanguageWord { //TODO:Alanlar buraya yazılacak //Örn:BrandName = brand.BrandName, }); SuccessNotification("Kayıt Eklendi."); return(RedirectToAction("LanguageWordIndex")); }