Files
AppointmentOA/api_v1/Appointment.Repository/ApptLogRepo.cs
2022-07-24 14:48:54 +08:00

27 lines
753 B
C#

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<int> 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);
}
}
}