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); }
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); }
public List <Event> EventTypeOrStatusRetrieve(Models.EventType type, Models.EventStatus status) { List <Event> events = eventService.getEventTypeOrStatus(type, status); return(events); }