private void UpdateCollectionCar(CollectionCarDTO carSheet) { CollectionCar carSheetImport = Mapper.Map <CollectionCar>(carSheet); carSheetImport.Status = Status.Active; carSheetImport.UpdatedBy = carSheet.UpdatedBy; _collectionCarRepository.Update(carSheetImport); }
private void InsertCollectionCar(CollectionCarDTO carSheet) { CollectionCar carSheetImport = Mapper.Map <CollectionCar>(carSheet); carSheetImport.Status = Status.Active; carSheetImport.CreatedBy = carSheet.CreatedBy; _collectionCarRepository.Add(carSheetImport); }