public void AdaugaCabinet(Modele.Cabinet.Cabinet cabinet) { var result = _cabinete.FirstOrDefault(d => d.Equals(cabinet)); if (result != null) { throw new DuplicateWaitObjectException(); } _cabinete.Add(cabinet); Console.WriteLine("Un nou cabinet a fost adaugat."); }
public void ActualizeazaCabinet(Modele.Cabinet.Cabinet cabinet) { //persit changes to the database Console.WriteLine("Modificarile au fost salvate."); }