Ejemplo n.º 1
0
 public ActionResult AddGroup(Group model)
 {
     GroupsDbDataContext db = new GroupsDbDataContext();
     if (ModelState.IsValid)
     {
         Group gr = new Group();
         gr.Date = DateTime.Now;
         gr.GroupName = model.GroupName;
         gr.TypeId = model.TypeId;
         db.Groups.InsertOnSubmit(gr);
         db.SubmitChanges();
     }
     return RedirectToAction("Index");
 }
Ejemplo n.º 2
0
		private void detach_Groups(Group entity)
		{
			this.SendPropertyChanging();
			entity.Type = null;
		}
Ejemplo n.º 3
0
		private void attach_Groups(Group entity)
		{
			this.SendPropertyChanging();
			entity.Type = this;
		}
Ejemplo n.º 4
0
 partial void DeleteGroup(Group instance);
Ejemplo n.º 5
0
 partial void UpdateGroup(Group instance);
Ejemplo n.º 6
0
 partial void InsertGroup(Group instance);