public int Update(FlightModel flight) { this.FlightRepository.Update(flight.GetModel()); var result = this.UnitOfWork.SaveChanges(); return(result); }
public int Insert(FlightModel flight) { var result = this.FlightRepository.Insert(flight.GetModel()); return(result); }