public ActionResult Create(DataGroup_Element dataGroup_Element)
 {
     if (ModelState.IsValid)
     {
         try
         {
             _dataGroup_ElementRepository.AddDataGroup_Element(dataGroup_Element);
             return(RedirectToAction("Index"));
         }
         catch
         {
             return(View(dataGroup_Element));
         }
     }
     else
     {
         return(View(dataGroup_Element));
     }
 }
 public void UpdateDataGroup_Element(DataGroup_Element dataGroup_Element)
 {
     db.SubmitChanges();
 }
 public void DeleteDataGroup_Element(DataGroup_Element dataGroup_Element)
 {
     db.DataGroup_Elements.DeleteOnSubmit(dataGroup_Element);
     db.SubmitChanges();
 }
 public void AddDataGroup_Element(DataGroup_Element dataGroup_Element)
 {
     db.DataGroup_Elements.InsertOnSubmit(dataGroup_Element);
     db.SubmitChanges();
 }