public static void DeleteLogical(int ID) { if (ID <= 0) return; EventDataMapper objCaller = new EventDataMapper(); objCaller.DeleteLogical(ID); }
public static List<Event> GetByLocationID(int LocationID) { if (LocationID <= 0) return new List<Event>(); EventDataMapper objCaller = new EventDataMapper(); return objCaller.GetByLocationID(LocationID); }
public static List<Event> GetByCategoryID(int CategoryID) { if (CategoryID <= 0) return new List<Event>(); EventDataMapper objCaller = new EventDataMapper(); return objCaller.GetByCategoryID(CategoryID); }
public static Event GetByID(int ID) { if (ID <= 0) return null; EventDataMapper objCaller = new EventDataMapper(); return objCaller.GetByID(ID); }
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); }
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); }
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); }
public static List<Event> GetAll() { EventDataMapper objCaller = new EventDataMapper(); return objCaller.GetAll(); }