예제 #1
0
        public bool DeleteTheater(int id)
        {
            var theaterToDelete = _theatersRepository.Get(id);

            if (theaterToDelete == null)
            {
                return(false);
            }
            _theatersRepository.Delete(theaterToDelete);
            _theatersRepository.Save();
            return(true);
        }
예제 #2
0
 public List <Theater> Get()
 {
     return(_theaterRepository.Get());
 }