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; }
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; } }