public bool CreateNewGroupEvent(Data newEvent) { bool output = false; try { if (ExHandler.NewEvent(newEvent.Name, newEvent.Description, newEvent.StartDate, newEvent.EndDate, newEvent.Online, newEvent.LocationUrl)) { output = eventRepo.CreateGroupEvent(newEvent.GroupId, newEvent.EventOwnerId, newEvent.Name, newEvent.StartDate, newEvent.EndDate, newEvent.Online, newEvent.LocationUrl, newEvent.Description); } } catch (EmptyField ex) { throw ex; } catch (InvalidEndDate ex) { throw ex; } catch (StartDateInPast ex) { throw ex; } return(output); }