コード例 #1
0
        public string CheckLogin(UserCheckInput userCheckInput)
        {
            if (string.IsNullOrEmpty(userCheckInput.CustomerName) || string.IsNullOrEmpty(userCheckInput.Pwd))
            {
                this.HttpContext.Response.StatusCode = 204;
                return(null);
            }
            var customerPwd = _customerService.CheckLogin(userCheckInput);

            if (customerPwd != null)
            {
                return(GetToken(customerPwd.CustomerNo));
            }
            else
            {
                this.HttpContext.Response.StatusCode = 204;
                return(null);
            }
        }