예제 #1
0
 public static void DeleteLogical(int ID)
 {
     if (ID <= 0)
         return;
     EventDataMapper objCaller = new EventDataMapper();
     objCaller.DeleteLogical(ID);
 }
예제 #2
0
        public static List<Event> GetByLocationID(int LocationID)
        {
            if (LocationID <= 0)
                return new List<Event>();

            EventDataMapper objCaller = new EventDataMapper();

            return objCaller.GetByLocationID(LocationID);
        }
예제 #3
0
        public static List<Event> GetByCategoryID(int CategoryID)
        {
            if (CategoryID <= 0)
                return new List<Event>();

            EventDataMapper objCaller = new EventDataMapper();

            return objCaller.GetByCategoryID(CategoryID);
        }
예제 #4
0
        public static Event GetByID(int ID)
        {
            if (ID <= 0)
                return null;

            EventDataMapper objCaller = new EventDataMapper();

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

            if (obj.FromDate > obj.ToDate)
                throw new Exception("ErrFromDateLessThanToDate");

            EventDataMapper objCaller = new EventDataMapper();

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

            if (obj.FromDate > obj.ToDate)
                throw new Exception("ErrFromDateLessThanToDate");

            EventDataMapper objCaller = new EventDataMapper();

            return objCaller.Add(obj);
        }
예제 #7
0
        public static List<Event> GetBySearch(string Keyword, int CategoryID, int LocationID, DateTime? FromDate, DateTime? ToDate)
        {
            EventDataMapper objCaller = new EventDataMapper();

            return objCaller.GetBySearch(Keyword, CategoryID, LocationID, FromDate, ToDate);
        }
예제 #8
0
        public static List<Event> GetAll()
        {
            EventDataMapper objCaller = new EventDataMapper();

            return objCaller.GetAll();
        }