public ActionResult DisplayAddModal(long eventTypeID) { EventsObjects eventsObjects = new EventsObjects(); eventsObjects.EventType = eventTypeID; eventsObjects.EventObjectList = new List <object>() { EventTypesRepository(eventTypeID) }; return(PartialView("_AddEventPartial", eventsObjects)); }
public ActionResult DisplayDetailsModal(long eventID) { EventsObjects eventsObjects = new EventsObjects(); //eventsObjects.EventType = eventTypeID; //eventsObjects.EventObjectList = new List<object>() { EventTypesRepository(eventTypeID) }; string desc = dbContext.events.Where(x => x.id == eventID).Select(x => x.descryptions.descryprion).FirstOrDefault(); string[] processedDesc = desc.Split(','); List <string> detailsToListConversion = processedDesc.ToList(); for (int i = 0; i < detailsToListConversion.Count; i++) { detailsToListConversion[i] = detailsToListConversion[i].Replace("\"", ""); } return(PartialView("_EventDetailsPartial", detailsToListConversion)); }