Example #1
0
        public async Task SaveEmail(DbEmailModel emailModel)
        {
            string   emailId         = emailModel.Id;
            string   emailText       = emailModel.Email;
            DateTime emailCratedDate = emailModel.CreatedDate;

            await _mySql.SaveData("spEmails_Insert", new { emailId, emailText, emailCratedDate }, "Default");
        }
Example #2
0
        public async Task SaveTempEmail(DbEmailTempModel emailModel)
        {
            string   emailId                = emailModel.Id;
            string   emailText              = emailModel.Email;
            DateTime emailCratedDate        = emailModel.CreatedDate;
            string   emailVerificationToken = emailModel.VerificationKey;

            await _mySql.SaveData("spEmailsTemp_Insert", new { emailId, emailText, emailCratedDate, emailVerificationToken }, "Default");
        }
Example #3
0
        public async Task SaveRecord(DbRecord record) //void
        {
            string   recordId          = record.Id;
            string   recordTeacher     = record.Teacher;
            string   recordRoom        = record.Room;
            string   recordNote        = record.Note;
            string   recordClassNumber = record.ClassNumber;
            string   recordClassLetter = record.ClassLetter;
            string   recordLessons     = record.Lessons;
            DateTime recordDate        = record.Date;

            await _mySql.SaveData("spRecords_Insert", new { recordId, recordTeacher, recordRoom, recordNote, recordClassNumber, recordClassLetter, recordLessons, recordDate }, "Default"); //record
        }