public void Edit(Broker entity)
 {
     _context.Brokers.Attach(entity);
     var entry = _context.Entry(entity);
     entry.State = EntityState.Modified;
     _context.SaveChanges();
 }
 public void Add(Broker entity)
 {
     _context.Brokers.Add(entity);
     _context.SaveChanges();
 }