public LoginResponse LoginRequest(LoginRequest request) { var hasRegister = _userLoginRepository.FindByLogin(request.Login, HashUtil.HashPassword(request.Password)); if (hasRegister) { return(new LoginResponse(TokenUtil.GenerateTokenJWT())); } else { return(null); } }