Beispiel #1
0
        public bool AddAdministrator(string name)
        {
            if (!String.IsNullOrEmpty(name))
            {
                var newAdmin = new Administrator {
                    IdAdministrator = new Random().Next(3, 2000), Name = name
                };

                _adminDao.AddAdministrator(newAdmin);

                return(true);
            }

            return(false);
        }