Exemplo n.º 1
0
 public void SaveStudentSentMessageAsync(IEnumerable <StudentSentMessage> models)
 {
     try
     {
         using (var connection = new MySqlConnection(connString))
         {
             connection.ExecuteAsync(MySqlDbQuery.SaveStudentSentMessages(), models);
         }
     }
     catch (Exception ex)
     {
         SaveExceptionLog(ex);
     }
 }
Exemplo n.º 2
0
 public void SaveStudentSentMessage(StudentSentMessage model)
 {
     try
     {
         using (var connection = new MySqlConnection(connString))
         {
             connection.Execute(MySqlDbQuery.SaveStudentSentMessages(), model);
         }
     }
     catch (Exception ex)
     {
         SaveExceptionLog(ex);
     }
 }