Пример #1
0
        public IActionResult Create(PersonForm pf)
        {
            if (ModelState.IsValid)
            {
                _service.Create(pf.toLocal());

                return(RedirectToAction("Index", "Movie"));
            }

            return(View(pf));
        }
Пример #2
0
 public IActionResult Edit(PersonForm p)
 {
     _service.Update(p.toLocal());
     return(RedirectToAction("Index"));
 }