public void addStudentForm_InsertItem() { var item = new Example.DAL.DataModels.Coche(); item.Id = Guid.NewGuid(); TryUpdateModel(item); if (ModelState.IsValid) { DataContext.AddCoche(item); DataContext.SaveChanges(); } }