コード例 #1
0
 public void AddEquipment(Common.Equipment e)
 {
     DataLayer.PatientsHandler dap = new DataLayer.PatientsHandler();
     e.EquipmentId = Guid.NewGuid();
     this.AddEquipmentToDatabase(e);
 }
コード例 #2
0
 public void AddEquipment(Common.Equipment equipment)
 {
     this.Entities.Equipments.Add(equipment);
     this.Entities.SaveChanges();
 }
コード例 #3
0
 private void AddEquipmentToDatabase(Common.Equipment equipment)
 {
     new DataLayer.PatientsHandler().AddEquipment(equipment);
 }