public bool AddEvent(string EventName, string Description, string Venue, string posterImagePath, TimeSpan startTime, TimeSpan endTime, DateTime eventDate, DataTable StudentRegistrationData) { try { var responseAddEventData = EventQuery.AddEvent(EventName, Description, Venue, posterImagePath, startTime, endTime, eventDate); //Save the attendees data //Fetch Event ID and Name List <String> responseAddStudentRegistrationData = _eventRegistration.InsertTblRegisteredStudents(null, 12, "CodeInject"); return(responseAddEventData); } catch (Exception ex) { Debug.Print(ex.Message); return(false); } }
public Dictionary <string, string> AddEvent(string EventName, string Description, string Venue, string posterImagePath, TimeSpan startTime, TimeSpan endTime, DateTime eventDate, DataTable StudentRegistrationData, int CreatedBy) { try { var responseAddEventData = _eventQuery.AddEvent(EventName, Description, Venue, posterImagePath, startTime, endTime, eventDate, CreatedBy); //Save the attendees data //Fetch Event ID and Name Dictionary <string, string> responseAddStudentRegistrationData = _eventRegistration.InsertTblRegisteredStudents(StudentRegistrationData, 60, "CodeInject"); return(responseAddStudentRegistrationData); } catch (Exception ex) { Debug.Print(ex.Message); return(null); } }