public void Create(Note note) { var entry = dbContext.Entry(note); dbContext.Notes.Add(note); entry.State = System.Data.Entity.EntityState.Added; dbContext.SaveChanges(); }
public void Create(Document document) { var entry = dbContext.Entry(document); dbContext.Documents.Add(document); entry.State = System.Data.Entity.EntityState.Added; dbContext.SaveChanges(); }
public void Create(Appointment appointment) { var entry = dbContext.Entry(appointment); dbContext.Appointments.Add(appointment); entry.State = System.Data.Entity.EntityState.Added; dbContext.SaveChanges(); }
public void Create(Task task) { var entry = dbContext.Entry(task); dbContext.Tasks.Add(task); entry.State = System.Data.Entity.EntityState.Added; dbContext.SaveChanges(); }