public IActionResult IsAuthentication([FromBody] IsAuthenticationModel _requestPram)
 {
     try{
         IAuthenticationService      authenticationService = new AuthenticationServiceImpl();
         ResultAuthenticationService result = authenticationService.isAuthentication(_requestPram);
         return(Ok(result));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, ex));
     }
 }
Esempio n. 2
0
        public ResultAuthenticationService isAuthentication(IsAuthenticationModel _param)
        {
            // DB検索用パラメータークラス用意
            GetAuthenticationParam getAuthenticationParam = new GetAuthenticationParam();

            getAuthenticationParam.UserId   = _param.UserName;
            getAuthenticationParam.UserPass = _param.UserPass;

            // DB検索実施
            IAuthenticationRepository authenticationRepository = new AuthenticationRepositoryImpl();
            var result = authenticationRepository.getAuthentication(getAuthenticationParam);

            return(new ResultAuthenticationService(result));
        }