예제 #1
0
        public IActionResult TallennaVanha(Tyontekija t)
        {
            if (ModelState.IsValid)
            {
                t.update();
            }

            return(View("Tyontekija", Tyontekija.findWithPermissions(t.Id)));
        }
예제 #2
0
 public IActionResult Muokkaa(int id)
 {
     ModelState.Clear();
     return(View(Tyontekija.findWithPermissions(id)));
 }
예제 #3
0
 public IActionResult Nayta(int id)
 {
     return(View("Tyontekija", Tyontekija.findWithPermissions(id)));
 }