public void Delete(DalLot e) { var lot = e.ToOrmLot(); lot = _context.Set<Lot>().Single(u => u.Id == lot.Id); _context.Set<Lot>().Remove(lot); }
public void Create(DalLot e) { _context.Set<Lot>().Add(e.ToOrmLot()); }