public ActionResult AddTicket(string spacename, TicketViewModel ticketViewModel) { if (ModelState.IsValid) { var savedSuccessfully = repo.AddTicket(spacename, ticketViewModel); if (savedSuccessfully) { return(RedirectToAction("Cardwall", "Space", new { spacename = spacename })); } else { return(RedirectToAction("Error")); } } return(View(ticketViewModel)); }