using Appointment.Entity; using Appointment.IRepository; using System; using System.Collections.Generic; using System.Text; namespace Appointment.Repository { public class ApptLogRepo : DbContext, IApptLogRepo { public ApiResult SetLog(string tableName, string keyId, string oldData, string newData, string userId, int systemUser = 0) { var model = new ApptLog() { TableName = tableName, KeyId = keyId, OldData = oldData, NewData = newData, CreateTime = DateTime.Now, UserId = userId, SystemUser = systemUser }; return InsertReturnId(model); } } }