コード例 #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();
        }