Ejemplo n.º 1
0
        public bool Remove(string name)
        {
            var citizen = _citizenRepository.GetByName(name);

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

            _citizenRepository.Remove(citizen);

            return(true);
        }
Ejemplo n.º 2
0
        public bool CitizenToJail(long id)
        {
            Citizen citizen = _citizenRepo.Get(id);

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

            _citizenRepo.Remove(citizen);

            return(true);
        }