ASP.NET version of the dhtmlx scheduler demo question

There is a tutorial that was set up for a task scheduler. I am having trouble getting it to work…
Inside the SystemController there is this method…

    public ActionResult TaskDetails(int? id)
        #region check rights
        if (!RoleIs("Employee"))
            return RedirectToAction("Index", "System");
        TasksDataContext data = new TasksDataContext();
        Task task = default(Task);
        if (id != null)
            task = (from t in data.Tasks where == id select t).FirstOrDefault();
            if (task.owner_id != (Guid)Membership.GetUser().ProviderUserKey)
                task = default(Task);

        var statuses = data.Statuses.ToArray();
        ViewData["status"] = task != default(Task) ? task.status_id : statuses[0].key;
        ViewData["user"] = User.Identity.Name;
        return View(new TaskDetails(task, statuses));

VS.NET 2010 is giving me an error on return View(new TaskDetails(task, statuses));
Not sure what TaskDetails it is referring to?
The error is

Error 12 ‘TaskSchedulerASP.Controllers.SystemController.TaskDetails(int?)’ is a ‘method’ but is used like a ‘type’ c:\users\david.smith\documents\visual studio 2010\Projects\TaskSchedulerASP\TaskSchedulerASP\Controllers\SystemController.cs 259 29 TaskSchedulerASP

there should be model class for details page, looks like we’ve missed this part in tutorial…
it should look like this:


using System.Collections.Generic;
using System.Linq;

namespace TaskSchedulerASP.Models
    public class TaskDetails
        public Task Task{ get; set; }
        public IEnumerable<Statuse> Statuses { get; set; }
        public TaskDetails(Task ts, IEnumerable<Statuse> st)
            Task = ts;
            Statuses = st;

Thank you. That fixed the error but I’m not seeing the calendar at all…

we are checking tutorial right now, it will be updated in the nearest time.

what error do you receive?

We have updated tutorial, so hopefully it will be more clear now.

I trying to implement the scheduler in mvc3, and it works fine. But, i need to load the resources from a viewmodel class. Example A below is how the resources where loaded.
However, I would like to be able to do like Example B, using a for loop in the jquery section. Any suggestion would be appreciated. Thanks.

Example A

        var rooms = [
	{ key: 1, label: "Room A" },
	{ key: 2, label: "Room B" },
	{ key: 3, label: "Room C" },
	{ key: 4, label: "Room D" }

Example B
Foreach(r in MyViewModel.Resources)
var rooms = [
{ key: @r.RoomID, label: @r.RoomName}

Hello, check the sample from our blog …