Ejemplo n.º 1
0
        public ActionResult DraftBox(string query)
        {
            string   sessionId = Request.Cookies["sessionId"]?.Value ?? "";
            UserInfo userInfo  = WebCommon.GetCurrentUser(sessionId);

            if (string.IsNullOrEmpty(query))
            {
                var mailInfos = MailInfoService.GetAllDraftMail(userInfo.ID);
                ViewBag.MailInfoList = mailInfos;
                return(View());
            }
            else
            {
                var mailInfos = MailInfoService.GetAllDraftMail(userInfo.ID, query);
                ViewBag.MailInfoList = mailInfos;
                return(View());
            }
        }