public ActionResult NieuwTicket(int klant) { var dataContext = new TicketDataContext(); Ticket t = new Ticket(); t.klantid = klant; t.gebruikerid = User.Identity.Name; dataContext.Tickets.InsertOnSubmit(t); dataContext.SubmitChanges(); //return View("Index"); // return RedirectToAction("Toon?id=" + t.id.ToString(),"Ticket"); // Toon(k.id); // return View("Toon"); //return View(); return RedirectToAction("Toon", new { id = t.id }); //return Red }
private void detach_Tickets(Ticket entity) { this.SendPropertyChanging(); entity.Klanten = null; }
private void attach_Tickets(Ticket entity) { this.SendPropertyChanging(); entity.Klanten = this; }
partial void DeleteTicket(Ticket instance);
partial void UpdateTicket(Ticket instance);
partial void InsertTicket(Ticket instance);