public async Task<EventsRootObject> GetEvents(string groupId, int skip) { var events = new EventsRootObject(); events.Metadata = new Meta(); events.Events = new List<Event>(); for (int i = 0; i < 10; i++) { events.Events.Add(new Event { Name = "Event name : " + i, Id = i.ToString() }); } return events; }
public async Task<EventsRootObject> GetEvents (int skip) { var events = new EventsRootObject (); events.Metadata = new Meta (); events.Events = new List<Event> (); for (int i = 0; i < 10; i++) { events.Events.Add (new Event { Name = "This is the name of an event " + i, Time = DateTime.Now.Ticks, Id = i.ToString() }); } return events; }