コード例 #1
0
        public RedirectResult Remove(string id)
        {
            try
            {
                var webSession = new WebSession(Configuration, Context, Logger);

                if (!string.IsNullOrEmpty(id))
                {
                    var result = webSession.FindWebSessionId(id);

                    if (result != null)
                    {
                        webSession.DeleteWebSession(result);
                    }
                }

                return(Redirect("~/WebSession"));
            }
            catch (Exception e)
            {
                Log.Logger.Error("HttpGet SendSms: " + e.Message);
                return(Redirect("~/WebSession"));
            }
        }