public bool Remove(string name) { var citizen = _citizenRepository.GetByName(name); if (citizen == null) { return(false); } _citizenRepository.Remove(citizen); return(true); }
public bool CitizenToJail(long id) { Citizen citizen = _citizenRepo.Get(id); if (citizen == null) { return(false); } _citizenRepo.Remove(citizen); return(true); }