public void SendDraft(SendDraftBm bm)
        {
            var mail = Context.Emails.Find(bm.EmailId);

            mail.Flag = Flag.Sent;
            Context.SaveChanges();
        }
        public IActionResult Senddraft(HttpSession session, HttpResponse response, SendDraftBm bm)
        {
            if (!AuthenticationManager.IsUserAuthenticated(session.Id))
            {
                this.Redirect(response, "/users/login");

                return(null);
            }

            this.service.SendDraft(bm);

            this.Redirect(response, "mail/drafts");

            return(null);
        }