public void CreatePersonalProtectiveEquipmentCategoryType(PersonalProtectiveEquipmentCategoryType personalProtectiveEquipmentCategoryType) { var repository = new PersonalProtectiveEquipmentCategoryTypeRepository(_db); repository.Add(personalProtectiveEquipmentCategoryType); repository.Save(); }
public void UpdatePersonalProtectiveEquipmentCategoryType(PersonalProtectiveEquipmentCategoryType personalProtectiveEquipmentCategoryType) { //prevent duplicates saving //better implementation needed by the data access layer personalProtectiveEquipmentCategoryType.PersonalProtectiveEquipmentCategory = null; var repository = new PersonalProtectiveEquipmentCategoryTypeRepository(_db); repository.Edit(personalProtectiveEquipmentCategoryType); repository.Save(); }
public void DeletePersonalProtectiveEquipmentCategoryType(int personalProtectiveEquipmentCategoryTypeId) { var repository = new PersonalProtectiveEquipmentCategoryTypeRepository(_db); repository.Delete(personalProtectiveEquipmentCategoryTypeId); repository.Save(); }