Ejemplo n.º 1
0
        public IActionResult Logout(UserDto userDto)
        {
            if (userDto == null || userDto.LoginId == null || userDto.SessionKey == null)
            {
                return(View("Login"));
            }

            try
            {
                _userStatusService.ClearSessionKey(userDto.LoginId, userDto.SessionKey);
            }
            catch (Exception)
            {
                ViewBag.Message = String.Format(ApiConstant.ERR90);
            }

            return(View("Login"));
        }