units view in entity framework

I’m using mvc4/razor, this is rendering “undefined” instead of names in header.
please help.
var unit = new UnitsView(“units”, “room_id”);
sched.Views.Add(unit);
CalendarDataContainer entity = new CalendarDataContainer();
unit.AddOptions(entity.Rooms);

Make sure .Rooms have mandatory ‘key’ and ‘label’ properties