Пример #1
0
        public bool Remove(string name)
        {
            var citizen = _citizenRepository.GetByName(name);

            if (citizen == null)
            {
                return(false);
            }

            _citizenRepository.Remove(citizen);

            return(true);
        }
Пример #2
0
        public bool CitizenToJail(long id)
        {
            Citizen citizen = _citizenRepo.Get(id);

            if (citizen == null)
            {
                return(false);
            }

            _citizenRepo.Remove(citizen);

            return(true);
        }