public void GetAllMenu() { try { var response = _role.GetAllMenu(); Console.WriteLine(response); } catch (Exception ex) { Assert.True(false, ex.Message); } }
public IActionResult GetAllMenu() { return(Ok(_role.GetAllMenu())); }