Exemple #1
0
        private static void Watch_Inserted(SmsOutbox entity)
        {
            PrintEnity("Inserted", entity);

            /*send sms*/
            _db.Sms.Attach(entity);
            entity.SentDateTimeUtc  = DateTime.UtcNow;
            _db.Entry(entity).State = EntityState.Modified;
            _db.SaveChanges();
            PrintEnity("Sms Process", entity);
        }
Exemple #2
0
 private static void Watch_Deleted(SmsOutbox entity)
 {
     PrintEnity("Deleted", entity);
 }
Exemple #3
0
 private static void Watch_Updated(SmsOutbox entity)
 {
     PrintEnity("Updated", entity);
 }
Exemple #4
0
 private static void PrintEnity(string title, SmsOutbox entity)
 {
     Console.WriteLine(title + " \t: " + JsonConvert.SerializeObject(entity));
 }