Esempio n. 1
0
        public PlaneAirport GetModel()
        {
            var model = new PlaneAirport();

            CommonMethods.CopyObjectProperties(this, model);

            return(model);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 4
0
 public void Insert(PlaneAirport planeAirport)
 {
     this.UnitOfWork.DBContext.PlaneAirports.Add(planeAirport);
 }