HI i want to bind a list to event calender, I do it. But it only show last item only
please help
mvc web
public ActionResult Data()
{
IList data = new List();
for (int i = 0; i < 3; i++)
{
Test t = new Test();
t.id = 1;
t.text = “Description” + i.ToString();
t.start_date = DateTime.Now.AddDays(i);
t.end_date = DateTime.Now.AddDays(i+1);
data.Add(t);
}
return View(data);
}
public class Test
{
public int id { get; set; }
public string text { get; set; }
public DateTime start_date { get; set; }
public DateTime end_date { get; set; }
}
Thank you