Пример #1
0
        public bool AddNewReader(string name, string surname, string address, string dateOfBirth)
        {
            try
            {
                Reader r = new Reader(_model.NewReaderId(), name, surname);
                LibraryModel.ReadersById.Add(r);
                LibraryModel.ReadersByName.Add(r);
                return(true);
            }
            catch (Exception)
            {
                return(false);

                throw;
            }
        }