public bool AddNewEvent(Event ev) { // add a new event to the system. bool wasAdded = false; int time = stringTimeToInt(ev); try { // check if it actually was added if (1 == EventAccessor.InsertNewEvent(ev.Name, ev.Description, ev.Date, time, ev.Location, ev.MaxSeats, ev.Price, ev.AddedBy)) { wasAdded = true; } } catch (Exception) { throw; } return(wasAdded); }