public void GetAllMenu(string adUser)
 {
     try
     {
         adUser = _config.DomainUser + adUser;
         var response = _userRole.GetDetail(adUser);
         Console.WriteLine(response);
     }
     catch (Exception ex)
     {
         Assert.True(false, ex.Message);
     }
 }
예제 #2
0
        public IActionResult GetDetail(string adUser)
        {
            IActionResult response;

            if (string.IsNullOrEmpty(adUser))
            {
                response = BadRequest(UtilityService.InitialResultError(ConstantValue.ArgullmentNullOrEmptyMessage, (int)HttpStatusCode.BadRequest));
            }
            else
            {
                response = Ok(_userRole.GetDetail(adUser));
            }
            return(response);
        }