public void Delete(Chat entity) { if (context.Entry(entity).State == EntityState.Detached) { context.Attach(entity); } context.Remove(entity); context.SaveChanges(); }
public void Delete(Chat entity) { if (context.Entry(entity).State == EntityState.Detached) { context.Attach(entity); } context.Remove(entity); context.SaveChanges(); }