Exemple #1
0
        public void UpdateEquipment(string equipmentId, EquipmentObject equipment)
        {
            var equipmentToUpdate = Data.Equipment.Find((v) => v.equipmentId == equipmentId);

            //FirstOrDefault(n => n.roomId == roomId);

            //rooms.Find((v) => v.roomId == id);

            if (equipmentToUpdate != null)
            {
                equipmentToUpdate.equipmentName     = equipment.equipmentName;
                equipmentToUpdate.equipmentQuantity = equipment.equipmentQuantity;
            }
        }
Exemple #2
0
 public void AddEquipment(EquipmentObject equipment)
 {
     Data.Equipment.Add(equipment);
 }