Exemplo n.º 1
0
 public UITheater()
 {
     InitializeComponent();
     _saloonService  = new SaloonManager(new SaloonDal());
     _seanceService  = new SeanceManager(new SeanceDal());
     _movieService   = new MovieManager(new MovieDal());
     _theaterService = new TheaterManager(new TheaterDal());
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
        public ActionResult Details(int?theaterId)
        {
            if (!theaterId.HasValue)
            {
                return(HttpNotFound());
            }

            var model = TheaterManager.GetByTheaterId(theaterId.Value);

            return(View(model));
        }
 public MovieController()
 {
     if (MovieManager == null)
     {
         MovieManager = new MovieManager();
     }
     if (TheaterManager == null)
     {
         TheaterManager = new TheaterManager();
     }
 }
        public ActionResult Create(TheaterViewModel model)
        {
            TheaterManager.Add(model);

            return(RedirectToAction("Index"));
        }
        public ActionResult Index()
        {
            var model = TheaterManager.GetAll();

            return(View(model));
        }