示例#1
0
        public IActionResult Edit(TicketTypes model)
        {
            if (!ModelState.IsValid)
            {
                return(View("Edit", model));
            }

            tickettypeRepository.UpdateType(model);
            tickettypeRepository.Save();

            return(RedirectToAction("Index"));
        }