public UserLogoutRs callLogout(UserLogoutRq request)
        {
            string serviceUrl = ServiceURL.ipServer + ServiceURL.userLogoutUrl;
            String resJSON    = CallServices.callPost(serviceUrl, request);

            return(JObject.Parse(resJSON).ToObject <UserLogoutRs>());
        }
        public UIReturn LogutUser()
        {
            UserLogoutRq req = UserLoginService.getInstance().getUserLogoutRq(UserSessionModel.loginUser);
            UserLogoutRs res = UserLoginService.getInstance().callLogout(req);

            if (res.header.isSuccess)
            {
                UserSessionModel.loginUser = null;
                App.Database.DeleteItem(DBConstants.ID_LOGIN_USER);
            }

            UIReturn ret = new UIReturn(res.header);

            return(ret);
        }
        public UserLogoutRq getUserLogoutRq(User input)
        {
            UserLogoutRq ret = JObject.Parse(JsonConvert.SerializeObject(input)).ToObject <UserLogoutRq>();

            return(ret);
        }