コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 private void InsertLog()
 {
     try
     {
         var schedulerLog = new SchedulerLog
         {
             SchedulerHistoryId = Convert.ToInt32(hdfKeyRecord.Text),
             Description        = txtDesciptionLog.Text.Trim(),
             CreatedDate        = DateTime.Now
         };
         BaseServices <SchedulerLog> .Create(schedulerLog);
     }
     catch (Exception e)
     {
         Dialog.Alert("Có lỗi xảy ra trong quá trình thêm mới: {0}".FormatWith(e.Message));
     }
 }