示例#1
0
        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
        }
示例#2
0
		private void detach_Tickets(Ticket entity)
		{
			this.SendPropertyChanging();
			entity.Klanten = null;
		}
示例#3
0
		private void attach_Tickets(Ticket entity)
		{
			this.SendPropertyChanging();
			entity.Klanten = this;
		}
示例#4
0
 partial void DeleteTicket(Ticket instance);
示例#5
0
 partial void UpdateTicket(Ticket instance);
示例#6
0
 partial void InsertTicket(Ticket instance);