private static List <Models.TruckEvent> GetEventsFromResponse(string responseFromServer) { // New empty list List <Models.TruckEvent> events = new List <Models.TruckEvent>(); string[] separator = new string[] { "<tr class=\"trFoodTrucks\">" }; string[] rawevents = responseFromServer.Split(separator, new StringSplitOptions()); foreach (string blurb in rawevents) { if (blurb.Contains("<td class=\"dow\">")) { Models.TruckEvent item = new Models.TruckEvent(blurb); events.Add(item); } } return(events); }
private static List<Models.TruckEvent> GetEventsFromResponse(string responseFromServer) { // New empty list List<Models.TruckEvent> events = new List<Models.TruckEvent>(); string[] separator = new string[] { "<tr class=\"trFoodTrucks\">" }; string[] rawevents = responseFromServer.Split(separator, new StringSplitOptions()); foreach (string blurb in rawevents) { if (blurb.Contains("<td class=\"dow\">")) { Models.TruckEvent item = new Models.TruckEvent(blurb); events.Add(item); } } return events; }
public void AddEvent(Models.TruckEvent item) { _db.Add(item); }