예제 #1
0
 public static Seance GetSeanceById(int id)
 {
     try
     {
         return(SeanceController.Get(id));
     }
     catch (Exception e)
     {
         return(new Seance());
     }
 }
예제 #2
0
 public static List <Seance> GetAllSeances()
 {
     try
     {
         return(SeanceController.All());
     }
     catch (Exception e)
     {
         return(new List <Seance>());
     }
 }
예제 #3
0
 public static bool SeanceDeleteValidation(int id)
 {
     try
     {
         SeanceController.Delete(id);
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }
예제 #4
0
 public static bool SeanceUpdateValidation(int id, int movieId, int hallId, DateTime time)
 {
     try
     {
         SeanceController.Update(id, movieId, hallId, time);
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }
예제 #5
0
 public FormSeansAdd()
 {
     InitializeComponent();
     _sc = new SeanceController();
 }
예제 #6
0
 public FormSeansUpdate(SeanceDTO seance)
 {
     InitializeComponent();
     _seance = seance;
     _sc     = new SeanceController();
 }