Example #1
0
 public void UpdateVehicleBrand(Models.VehicleBrand VehicleBrandModel)
 {
     Common.SimpleObjectMapper<Models.VehicleBrand, Domain.Vehicles.VehicleBrand> SimpleObjectMapper = new Common.SimpleObjectMapper<Models.VehicleBrand, Domain.Vehicles.VehicleBrand>();
     Domain.Vehicles.VehicleBrand VehicleBrand = SimpleObjectMapper.ObjectMap(VehicleBrandModel);
     VehicleBrandDao.Update(VehicleBrand);
 }
Example #2
0
 public Models.VehicleBrand GetVehicleBrandByID(Guid BrandID)
 {
     Domain.Vehicles.VehicleBrand VehicleBrand = VehicleBrandDao.Load(BrandID);
     Common.SimpleObjectMapper<Domain.Vehicles.VehicleBrand, Models.VehicleBrand> SimpleObjectMapper = new Common.SimpleObjectMapper<Domain.Vehicles.VehicleBrand, Models.VehicleBrand>();
     Models.VehicleBrand VehicleBrandModel = SimpleObjectMapper.ObjectMap(VehicleBrand);
     return VehicleBrandModel;
 }
Example #3
0
        public List<Models.VehicleBrand> ListAllBrand()
        {
            List<Domain.Vehicles.VehicleBrand> VehicleBrandDomainList = VehicleBrandDao.LoadAll().ToList();
            Common.SimpleObjectMapper<Domain.Vehicles.VehicleBrand, Models.VehicleBrand> SimpleObjectMapper = new Common.SimpleObjectMapper<Domain.Vehicles.VehicleBrand, Models.VehicleBrand>();
            List<Models.VehicleBrand> VehicleBrandList = SimpleObjectMapper.ListMap(VehicleBrandDomainList);

            return VehicleBrandList;
        }