Exemplo n.º 1
0
        public IHttpActionResult DeleteRole(DeleteRoleInput input)
        {
            Init();
            input.AccessToken = ApiSession.AccessToken;
            DeleteRoleOutput output = _rolesSvc.DeleteRole(input);

            return(Ok(output));
        }
        public async Task Deleting_nonexisting_role_should_fail_gracefully()
        {
            var deleteResult = await rolesService.DeleteRole(Guid.NewGuid());

            Assert.False(deleteResult.Success);
        }
Exemplo n.º 3
0
 public async Task <ActionResult <Role> > DeleteRole(long id)
 {
     return(await _rolesService.DeleteRole(id));
 }