public PlaneSeatClass GetModel()
        {
            var model = new PlaneSeatClass();

            CommonMethods.CopyObjectProperties(this, model);

            return(model);
        }
        public void Update(PlaneSeatClass planeSeatClassairport)
        {
            var CurrentPlaneSeatClass = this.UnitOfWork.DBContext.PlaneSeatClasses.Find(planeSeatClassairport.PlaneID, planeSeatClassairport.SeatClassID);

            if (CurrentPlaneSeatClass != null)
            {
                CommonMethods.CopyObjectProperties(planeSeatClassairport, CurrentPlaneSeatClass);
            }
        }
        public PlaneSeatClassModel CreateViewModel(PlaneSeatClass model)
        {
            PlaneSeatClassModel viewModel = null;

            if (model != null)
            {
                viewModel = new PlaneSeatClassModel();
                CommonMethods.CopyObjectProperties(model, viewModel);
            }

            return(viewModel);
        }
 public void Insert(PlaneSeatClass planeSeatClass)
 {
     this.UnitOfWork.DBContext.PlaneSeatClasses.Add(planeSeatClass);
     this.UnitOfWork.SaveChanges();
 }