C# Class BinaryStudio.TaskManager.Web.Controllers.ProjectController

Inheritance: Controller
Show file Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Public Methods

Method Description
CreateTask ( int userId, int projectId, bool viewStyle ) : System.Web.Mvc.ActionResult

The create task.

Delete ( int idTask, bool viewStyle ) : System.Web.Mvc.ActionResult

The delete.

Details ( int id, bool viewStyle ) : System.Web.Mvc.ActionResult

The details.

GetImage ( int userId ) : System.Web.Mvc.ActionResult

The get image.

InviteOrDeleteUser ( int projectId ) : System.Web.Mvc.ActionResult

The invite or delete user.

MakeTaskClose ( int taskId, int projectId ) : void

The make task close.

MultiuserView ( int projectId, int userId, bool isOpenedProjects = true ) : System.Web.Mvc.ActionResult

The multyuser view.

Project ( int id, int userId, bool isOpenedProjects = true ) : System.Web.Mvc.ActionResult

The project.

ProjectController ( ITaskProcessor taskProcessor, IUserProcessor userProcessor, IProjectProcessor projectProcessor, INotifier notifier, INewsProcessor newsProcessor, IStringExtensions stringExtensions, IReminderProcessor reminderProcessor ) : System

Initializes a new instance of the ProjectController class.

Private Methods

Method Description
AllTasks ( int projectId ) : System.Web.Mvc.ViewResult
CreateSingleTaskViewModelById ( int taskId, bool viewStyle ) : SingleTaskViewModel

The create single task view model by id.

CreateTask ( CreateTaskViewModel createModel ) : System.Web.Mvc.ActionResult
DeleteConfirmed ( int idTask, int projectId, bool viewStyle ) : System.Web.Mvc.ActionResult
Edit ( CreateTaskViewModel createModel ) : System.Web.Mvc.ActionResult
Edit ( int taskId, int projectId, bool viewStyle ) : System.Web.Mvc.ActionResult
InviteUserInProject ( int receiverId, int projectId ) : void
MoveTask ( int taskId, int senderId, int receiverId, int projectId ) : void
RemoveUserFromProject ( int userId, int projectId ) : void
TaskView ( int taskId ) : System.Web.Mvc.ActionResult

Method Details

CreateTask() public method

The create task.
public CreateTask ( int userId, int projectId, bool viewStyle ) : System.Web.Mvc.ActionResult
userId int /// The user id. ///
projectId int /// The project id. ///
viewStyle bool /// The view Style. ///
return System.Web.Mvc.ActionResult

Delete() public method

The delete.
public Delete ( int idTask, bool viewStyle ) : System.Web.Mvc.ActionResult
idTask int /// The id Task. ///
viewStyle bool /// The view Style. ///
return System.Web.Mvc.ActionResult

Details() public method

The details.
public Details ( int id, bool viewStyle ) : System.Web.Mvc.ActionResult
id int /// The id. ///
viewStyle bool /// The view Style. ///
return System.Web.Mvc.ActionResult

GetImage() public method

The get image.
public GetImage ( int userId ) : System.Web.Mvc.ActionResult
userId int /// The user id. ///
return System.Web.Mvc.ActionResult

InviteOrDeleteUser() public method

The invite or delete user.
public InviteOrDeleteUser ( int projectId ) : System.Web.Mvc.ActionResult
projectId int /// The project id. ///
return System.Web.Mvc.ActionResult

MakeTaskClose() public method

The make task close.
public MakeTaskClose ( int taskId, int projectId ) : void
taskId int /// The task id. ///
projectId int /// The project id. ///
return void

MultiuserView() public method

The multyuser view.
public MultiuserView ( int projectId, int userId, bool isOpenedProjects = true ) : System.Web.Mvc.ActionResult
projectId int /// The project id. ///
userId int /// The user id. ///
isOpenedProjects bool /// The is opened projects. ///
return System.Web.Mvc.ActionResult

Project() public method

The project.
public Project ( int id, int userId, bool isOpenedProjects = true ) : System.Web.Mvc.ActionResult
id int /// The id. ///
userId int /// The user id. ///
isOpenedProjects bool /// The is opened projects. ///
return System.Web.Mvc.ActionResult

ProjectController() public method

Initializes a new instance of the ProjectController class.
public ProjectController ( ITaskProcessor taskProcessor, IUserProcessor userProcessor, IProjectProcessor projectProcessor, INotifier notifier, INewsProcessor newsProcessor, IStringExtensions stringExtensions, IReminderProcessor reminderProcessor ) : System
taskProcessor ITaskProcessor /// The task processor. ///
userProcessor IUserProcessor /// The user processor. ///
projectProcessor IProjectProcessor /// The project processor. ///
notifier INotifier /// The notifier. ///
newsProcessor INewsProcessor /// The news processor. ///
stringExtensions IStringExtensions /// The string extensions. ///
reminderProcessor IReminderProcessor /// The reminder processor. ///
return System