Пример #1
0
        public Event AddEvent(string name, string address, string description, DateTime date, string time, Models.EventType type, Models.EventStatus status)
        {
            var evenenement = new Event()
            {
                Name = name, Address = address, Date = date, Description = description, Time = time, Type = type, Status = status
            };

            eventService.addEvent(evenenement);
            return(evenenement);
        }
Пример #2
0
 public bool EventUpdate(Event evenement, string name, string address, string description, DateTime date, string time, Models.EventType type, Models.EventStatus status)
 {
     if (evenement == null)
     {
         return(false);
     }
     evenement.Name        = name;
     evenement.Address     = address;
     evenement.Description = description;
     evenement.Date        = date;
     evenement.Time        = time;
     evenement.Type        = type;
     evenement.Status      = status;
     eventService.updateEvent(evenement);
     return(true);
 }
Пример #3
0
        public List <Event> EventTypeOrStatusRetrieve(Models.EventType type, Models.EventStatus status)
        {
            List <Event> events = eventService.getEventTypeOrStatus(type, status);

            return(events);
        }