public void Update(int id, FlightDTO entity) { var flightMapp = FlightMapp.Mapp(entity, data); data.Set <Flight>().Update(id, flightMapp); }
public void Create(FlightDTO entity) { var flightMapp = FlightMapp.Mapp(entity, data); data.Set <Flight>().Create(flightMapp); }