fullcalendar with asp.net mvc not showing events fetched from database
i'm Trying to fetch events from my database and populate the fullcalendar with those events. 
the events are not showing . Although when i create events for testing in my controller they are showing 


**Controller: events are not showing in this case**  

            public JsonResult getEvents()
        {
            UserProfile user = getUserProfile();
            List<Calendar> events = db.Calendars.Where(c => c.userID == user.userID).ToList();
            IList<calendarPost> tasksList = new List<calendarPost>();
            foreach (Calendar eve in events)
            {
                tasksList.Add(new calendarPost
                {
                    id = eve.recordID,
                    title = eve.recordDescription,
                    start = ToUnixTimespan(eve.startTime),
                    end = ToUnixTimespan(eve.endTime),
                    url = "www.google.com"
                    //      });
                    // }
                });
            }
            return Json(tasksList.ToArray(), JsonRequestBehavior.AllowGet);



**Where If i do this the events are showing :** 

    public JsonResult getEvents()
        {
           UserProfile user = getUserProfile();
           List<Calendar> events = db.Calendars.Where(c => c.userID == user.userID).ToList();
            IList<calendarPost> tasksList = new List<calendarPost>();
      //      foreach (Calendar eve in events)
        //    {
            tasksList.Add(new calendarPost
            {
                id = 5,
                title = "test",
                start = ToUnixTimespan(DateTime.Now.AddHours(1)),
                end = ToUnixTimespan(DateTime.Now.AddHours(2)),
                url = "www.google.com"
                //      });
                // }
            });
            return Json(tasksList.ToArray() , JsonRequestBehavior.AllowGet);

        }


Yeah and btw both produce the same Json output 

    [{"id":5,"title":"test","start":1336945877,"end":1336949477,"url":"www.google.com","backgroundColor":null}]

    [{"id":1,"title":"Testing the Calendar","start":1349384400,"end":1352062800,"url":"www.google.com","backgroundColor":null},{"id":3,"title":"Testing Votes","start":1325748600,"end":1325752200,"url":"www.google.com","backgroundColor":null}]
fullcalendar with asp.net mvc not showing events fetched from database
===

i'm Trying to fetch events from my database and populate the fullcalendar with those events. 
the events are not showing . Although when i create events for testing in my controller they are showing 


**Controller: events are not showing in this case**  

            public JsonResult getEvents()
        {
            UserProfile user = getUserProfile();
            List<Calendar> events = db.Calendars.Where(c => c.userID == user.userID).ToList();
            IList<calendarPost> tasksList = new List<calendarPost>();
            foreach (Calendar eve in events)
            {
                tasksList.Add(new calendarPost
                {
                    id = eve.recordID,
                    title = eve.recordDescription,
                    start = ToUnixTimespan(eve.startTime),
                    end = ToUnixTimespan(eve.endTime),
                    url = "www.google.com"
                    //      });
                    // }
                });
            }
            return Json(tasksList.ToArray(), JsonRequestBehavior.AllowGet);



**Where If i do this the events are showing :** 

    public JsonResult getEvents()
        {
           UserProfile user = getUserProfile();
           List<Calendar> events = db.Calendars.Where(c => c.userID == user.userID).ToList();
            IList<calendarPost> tasksList = new List<calendarPost>();
      //      foreach (Calendar eve in events)
        //    {
            tasksList.Add(new calendarPost
            {
                id = 5,
                title = "test",
                start = ToUnixTimespan(DateTime.Now.AddHours(1)),
                end = ToUnixTimespan(DateTime.Now.AddHours(2)),
                url = "www.google.com"
                //      });
                // }
            });
            return Json(tasksList.ToArray() , JsonRequestBehavior.AllowGet);

        }


Yeah and btw both produce the same Json output 

    [{"id":5,"title":"test","start":1336945877,"end":1336949477,"url":"www.google.com","backgroundColor":null}]

    [{"id":1,"title":"Testing the Calendar","start":1349384400,"end":1352062800,"url":"www.google.com","backgroundColor":null},{"id":3,"title":"Testing Votes","start":1325748600,"end":1325752200,"url":"www.google.com","backgroundColor":null}]