public void AddEquipment(Common.Equipment e) { DataLayer.PatientsHandler dap = new DataLayer.PatientsHandler(); e.EquipmentId = Guid.NewGuid(); this.AddEquipmentToDatabase(e); }
public void AddEquipment(Common.Equipment equipment) { this.Entities.Equipments.Add(equipment); this.Entities.SaveChanges(); }
private void AddEquipmentToDatabase(Common.Equipment equipment) { new DataLayer.PatientsHandler().AddEquipment(equipment); }