/* ---------FETCH EVENTS,DOCUMENTS,LOCATION,FEEDS,POST--------------*/ public void createEvent(EventPost events) { try { if (events.event_document_id != null) { if (events.list_document_id.Count() > 1) { events.event_document_id = string.Join(",", events.list_document_id); } } else if (events.event_gpslocation_id != null) { if (events.list_gpslocation_id.Count() > 1) { events.event_gpslocation_id = string.Join(",", events.list_gpslocation_id); } } objUserInfoDAL.createEvent(events); } catch (Exception ex) { CubitExceptionUtility.CubitExceptionLog(ex.Message + "BAL: Error while creating a event" + ex.StackTrace + " " + ex.InnerException, this.GetType().BaseType.Name.ToString(), DateTime.Now.ToLongTimeString(), DateTime.Now.ToLongDateString()); } }