public PlaneAirport GetModel() { var model = new PlaneAirport(); CommonMethods.CopyObjectProperties(this, model); return(model); }
public void Update(PlaneAirport planeAirport) { var currentPlaneAirport = this.Find(planeAirport.PlaneID, planeAirport.AirportID); if (currentPlaneAirport != null) { CommonMethods.CopyObjectProperties(planeAirport, currentPlaneAirport); } }
public PlaneAirportModel CreateViewModel(PlaneAirport model) { PlaneAirportModel viewModel = null; if (model != null) { viewModel = new PlaneAirportModel(); CommonMethods.CopyObjectProperties(model, viewModel); } return(viewModel); }
public void Insert(PlaneAirport planeAirport) { this.UnitOfWork.DBContext.PlaneAirports.Add(planeAirport); }