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