Пример #1
0
 public Email(int emailId, string subject, string receiver, string sender, string body)
 {
     EmailId  = emailId;
     Subject  = subject;
     Receiver = receiver;
     Sender   = sender;
     Body     = body;
     Status   = eEmailStatus.PendingToSend;
 }
Пример #2
0
 internal async Task UpdateStausOfMail(DateTime ScheduleOn, eEmailStatus status)
 {
     try
     {
         const string    sp    = "[dbo].[usp_Wb__MassMail_UpdateStatusOfMail]";
         List <SQLParam> Param = new List <SQLParam>
         {
             new SQLParam("@ScheduleOn", ScheduleOn),
             new SQLParam("@Status", (int)status)
         };
         SQLExecuteNonQueryAsync objHandler = new SQLExecuteNonQueryAsync();
         await objHandler.ExecuteNonQueryAsync(sp, Param);
     }
     catch
     {
         throw;
     }
 }