Class UserRoleController
Controller for REST actions that managed the UserRole domain of values.
Inheritance
UserRoleController
Assembly: WMServer.dll
Syntax
[Route("[controller]")]
[ApiExplorerSettings(IgnoreApi = true)]
[ApiController]
public class UserRoleController : ControllerBase
Constructors
UserRoleController(AuthDbContext)
Declaration
public UserRoleController(AuthDbContext context)
Parameters
Methods
DeleteRole(long)
Declaration
[HttpDelete("{id}")]
public Task<IActionResult> DeleteRole(long id)
Parameters
Type |
Name |
Description |
long |
id |
|
Returns
GetRole(long)
Declaration
[HttpGet("{id}")]
public Task<ActionResult<UserRole>> GetRole(long id)
Parameters
Type |
Name |
Description |
long |
id |
|
Returns
GetRoles()
Declaration
[HttpGet]
public Task<ActionResult<IEnumerable<UserRole>>> GetRoles()
Returns
PostRole(UserRole)
Declaration
[HttpPost]
public Task<ActionResult<UserRole>> PostRole(UserRole role)
Parameters
Returns
PutRole(string, UserRole)
Declaration
[HttpPut("{id}")]
public Task<IActionResult> PutRole(string name, UserRole role)
Parameters
Returns