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); }
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; }
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; }