// DELETE: api/Group/5 public void Delete(int id) { groupEventRepository.Remove(id); dataContext.SaveChanges(); }