30 lines
838 B
C#
30 lines
838 B
C#
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();
|
|
// }
|
|
//}
|
|
} |