public IActionResult Save(TicketTypes model) { if (!ModelState.IsValid) { return(View("Add", model)); } tickettypeRepository.InsertType(model); tickettypeRepository.Save(); return(RedirectToAction("Index")); }
public IActionResult Save(TicketTypes model) { if (!ModelState.IsValid) { return(View("Add", model)); } tickettypeRepository.InsertType(model); tickettypeRepository.Save(); return(RedirectToAction("Index")); }