Exemple #1
0
 public void OpenMail(int id)
 {
     try
     {
         EmailsSend editRow = _context.EmailsSends.Where(x => x.LineId == id).FirstOrDefault();
         if (editRow != null)
         {
             editRow.IsOpen = true;
             _context.SaveChanges();
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemple #2
0
 public void SetButtonClicked(int id, int button)
 {
     try
     {
         EmailsSend editRow = _context.EmailsSends.Where(x => x.LineId == id).FirstOrDefault();
         if (editRow != null)
         {
             editRow.IsOpen        = true;
             editRow.ClickedAnswer = button;
             _context.SaveChanges();
         }
     }
     catch (Exception ex)
     {
     }
 }