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