public IActionResult TallennaVanha(Tyontekija t) { if (ModelState.IsValid) { t.update(); } return(View("Tyontekija", Tyontekija.findWithPermissions(t.Id))); }
public IActionResult Muokkaa(int id) { ModelState.Clear(); return(View(Tyontekija.findWithPermissions(id))); }
public IActionResult Nayta(int id) { return(View("Tyontekija", Tyontekija.findWithPermissions(id))); }