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!"))); }