コード例 #1
0
        public async Task <IActionResult> Test()
        {
            throw new Exception();

            var r = await ApiManager.CheckRole("Administrador");

            return(r.ReturnCase <IActionResult>(Ok("Test Ok!"), Unauthorized("Not Ok!"), Unauthorized("Usuario errado!")));
        }