예제 #1
0
 public static void DeletePhysical(int ID)
 {
     if (ID <= 0)
         return;
     EventLocationDataMapper objCaller = new EventLocationDataMapper();
     objCaller.DeletePhysical(ID);
 }
예제 #2
0
        public static EventLocation GetByID(int ID)
        {
            if (ID <= 0)
                return null;

            EventLocationDataMapper objCaller = new EventLocationDataMapper();

            return objCaller.GetByID(ID);
        }
예제 #3
0
        public static void Update(EventLocation obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            EventLocationDataMapper objCaller = new EventLocationDataMapper();

            objCaller.Update(obj);
        }
예제 #4
0
        public static int Add(EventLocation obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            EventLocationDataMapper objCaller = new EventLocationDataMapper();

            return objCaller.Add(obj);
        }
예제 #5
0
        public static void DeleteLogical(int ID)
        {
            if (ID <= 0)
                return;

            List<Event> events = EventManager.GetByLocationID(ID);
            if (events.Count > 0)
                throw new Exception("ErrCannotDeleteLocationUsedInEvent");

            EventLocationDataMapper objCaller = new EventLocationDataMapper();
            objCaller.DeleteLogical(ID);
        }
예제 #6
0
        public static List<EventLocation> GetAll()
        {
            EventLocationDataMapper objCaller = new EventLocationDataMapper();

            return objCaller.GetAll();
        }