public void Delete(Project Model) { var context = new GuitarDbContext(); context.Entry(Model).State = System.Data.Entity.EntityState.Deleted; context.SaveChanges(); }
public void Update(Guitars Model) { var context = new GuitarDbContext(); context.Entry(Model).State = System.Data.Entity.EntityState.Modified; context.SaveChanges(); }