public void CreatePersonalProtectiveEquipmentCategoryTypeModelInventory(PersonalProtectiveEquipmentCategoryTypeModelInventory PersonalProtectiveEquipmentCategoryTypeModelInventory)
 {
     var repository = new PersonalProtectiveEquipmentCategoryTypeModelInventoryRepository(_db);
     repository.Add(PersonalProtectiveEquipmentCategoryTypeModelInventory);
     repository.Save();
 }
 public ICollection<PersonalProtectiveEquipmentCategoryTypeModelInventory> GetPersonalProtectiveEquipmentCategoryTypeModelInventories()
 {
     var repository = new PersonalProtectiveEquipmentCategoryTypeModelInventoryRepository(_db);
     return repository.GetAllWithChildren();
 }
 public PersonalProtectiveEquipmentCategoryTypeModelInventory GetPersonalProtectiveEquipmentCategoryTypeModelInventory(int Id)
 {
     var repository = new PersonalProtectiveEquipmentCategoryTypeModelInventoryRepository(_db);
     return repository.FindBy(c => c.PersonalProtectiveEquipmentCategoryTypeModelId == Id).SingleOrDefault();
 }
 public void DeletePersonalProtectiveEquipmentCategoryTypeModelInventory(int Id)
 {
     var repository = new PersonalProtectiveEquipmentCategoryTypeModelInventoryRepository(_db);
     repository.Delete(Id);
     repository.Save();
 }