C# Class Dogbert2.Controllers.TaskController

Inheritance: ApplicationController
Datei anzeigen Open project: ucdavis/Dogbert

Public Methods

Method Description
Create ( int projectId ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
Details ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
Index ( int projectId ) : System.Web.Mvc.ActionResult

View list of tasks for project

LoadRequirements ( int projectId, int categoryId ) : JsonNetResult

Loads a list of requirements in a category

MyTasks ( ) : System.Web.Mvc.ActionResult

View a list of tasks assigned to user

TaskController ( IRepository taskRepository, IRepository projectRepository, IAccessValidatorService accessValidator ) : System
UpdateTask ( int id, string description, string comments, bool complete = false ) : JsonNetResult

Worker's interface to update the task, can make comments and mark complete

Private Methods

Method Description
Create ( int projectId, Task task, List requirements ) : System.Web.Mvc.ActionResult
Delete ( int id, Task task ) : System.Web.Mvc.ActionResult
Edit ( int id, Task task, List requirements ) : System.Web.Mvc.ActionResult
TransferValues ( Task src, Task dest, List requirementIds, Project project = null ) : void

Method Details

Create() public method

public Create ( int projectId ) : System.Web.Mvc.ActionResult
projectId int
return System.Web.Mvc.ActionResult

Delete() public method

public Delete ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Details() public method

public Details ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Edit() public method

public Edit ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Index() public method

View list of tasks for project
public Index ( int projectId ) : System.Web.Mvc.ActionResult
projectId int
return System.Web.Mvc.ActionResult

LoadRequirements() public method

Loads a list of requirements in a category
public LoadRequirements ( int projectId, int categoryId ) : JsonNetResult
projectId int Project Id
categoryId int Category Id
return JsonNetResult

MyTasks() public method

View a list of tasks assigned to user
public MyTasks ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

TaskController() public method

public TaskController ( IRepository taskRepository, IRepository projectRepository, IAccessValidatorService accessValidator ) : System
taskRepository IRepository
projectRepository IRepository
accessValidator IAccessValidatorService
return System

UpdateTask() public method

Worker's interface to update the task, can make comments and mark complete
public UpdateTask ( int id, string description, string comments, bool complete = false ) : JsonNetResult
id int
description string
comments string
complete bool
return JsonNetResult