demo20230512/Controllers/BaseClass.cs

30 lines
838 B
C#
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Weee.DAL;
namespace Weee.Controllers
{
//public class BaseClass : QcarbonControllerBase
//{
// public BaseClass(WeeeDataContext db) : base(db)
// {
// }
// public void writeLog(WeeeDataContext db, string username, string err)
// {
// var log = new Weee.Models.ActionLog()
// {
// Name = username,
// Action = "ActionName",
// Controller = "ControllerName",
// IP = HttpContext.Request.UserHostAddress,
// ActionTime = DateTime.UtcNow,
// ExecuteResult = err
// };
// db.ActionLogs.Add(log);
// db.SaveChanges();
// }
//}
}