示例#1
0
        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.");
        }
示例#2
0
 public void ActualizeazaCabinet(Modele.Cabinet.Cabinet cabinet)
 {
     //persit changes to the database
     Console.WriteLine("Modificarile au fost salvate.");
 }