ScientificReport
ScientificReport.Controllers.DepartmentController Class Reference
Inheritance diagram for ScientificReport.Controllers.DepartmentController:
Inheritance graph
Collaboration diagram for ScientificReport.Controllers.DepartmentController:
Collaboration graph

Public Member Functions

 DepartmentController (IDepartmentService departmentService, IUserProfileService userProfileService, IScientificWorkService scientificWorkService, UserManager< UserProfile > userManager)
 
IActionResult Index (DepartmentIndexModel model)
 
IActionResult Details (Guid?id)
 
async Task< IActionResult > Create ()
 
async Task< IActionResult > Create (DepartmentCreateModel model)
 
IActionResult Edit (Guid?id)
 
async Task< IActionResult > Edit (Guid?id, [Bind("Title,SelectedHeadId")] DepartmentEditModel model)
 
async Task< IActionResult > AddUserToStaff (Guid?id, [FromBody] UpdateUserRequest request)
 
IActionResult RemoveUserFromStaff (Guid?id, [FromBody] UpdateUserRequest request)
 
async Task< IActionResult > Delete (Guid?id)
 

Detailed Description

Definition at line 19 of file DepartmentController.cs.

Constructor & Destructor Documentation

ScientificReport.Controllers.DepartmentController.DepartmentController ( IDepartmentService  departmentService,
IUserProfileService  userProfileService,
IScientificWorkService  scientificWorkService,
UserManager< UserProfile userManager 
)

Definition at line 27 of file DepartmentController.cs.

Member Function Documentation

async Task<IActionResult> ScientificReport.Controllers.DepartmentController.AddUserToStaff ( Guid?  id,
[FromBody] UpdateUserRequest  request 
)

Definition at line 258 of file DepartmentController.cs.

async Task<IActionResult> ScientificReport.Controllers.DepartmentController.Create ( )

Definition at line 89 of file DepartmentController.cs.

async Task<IActionResult> ScientificReport.Controllers.DepartmentController.Create ( DepartmentCreateModel  model)

Definition at line 113 of file DepartmentController.cs.

async Task<IActionResult> ScientificReport.Controllers.DepartmentController.Delete ( Guid?  id)

Definition at line 326 of file DepartmentController.cs.

IActionResult ScientificReport.Controllers.DepartmentController.Details ( Guid?  id)

Definition at line 65 of file DepartmentController.cs.

IActionResult ScientificReport.Controllers.DepartmentController.Edit ( Guid?  id)

Definition at line 160 of file DepartmentController.cs.

async Task<IActionResult> ScientificReport.Controllers.DepartmentController.Edit ( Guid?  id,
[Bind("Title,SelectedHeadId")] DepartmentEditModel  model 
)

Definition at line 203 of file DepartmentController.cs.

IActionResult ScientificReport.Controllers.DepartmentController.Index ( DepartmentIndexModel  model)

Definition at line 42 of file DepartmentController.cs.

IActionResult ScientificReport.Controllers.DepartmentController.RemoveUserFromStaff ( Guid?  id,
[FromBody] UpdateUserRequest  request 
)

Definition at line 293 of file DepartmentController.cs.


The documentation for this class was generated from the following file: