public static void UpdateStatus(EmailSend emailSend)
        {
            using (var db = OnlineStoreDbContext.Entity)
            {
                var orgEmailSend = db.EmailSends.Where(item => item.ID == emailSend.ID).Single();

                orgEmailSend.EmailSendStatus = emailSend.EmailSendStatus;
                orgEmailSend.LastUpdate      = emailSend.LastUpdate;

                db.SaveChanges();
            }
        }
        public static void Update(EmailSend emailSend)
        {
            using (var db = OnlineStoreDbContext.Entity)
            {
                var orgEmailSend = db.EmailSends.Where(item => item.ID == emailSend.ID).Single();

                orgEmailSend.From            = emailSend.From;
                orgEmailSend.To              = emailSend.To;
                orgEmailSend.Subject         = emailSend.Subject;
                orgEmailSend.Text            = emailSend.Text;
                orgEmailSend.EmailSendStatus = emailSend.EmailSendStatus;
                orgEmailSend.Priority        = emailSend.Priority;
                orgEmailSend.LastUpdate      = emailSend.LastUpdate;

                db.SaveChanges();
            }
        }