private void Add(User user, String action, String dataInfo, String dataType, String ip, int categoryId) { IAdminLog log = Entity.New(typeof(T).FullName) as IAdminLog; log.User = user; log.Message = action; log.Ip = ip; log.CategoryId = categoryId; log.DataInfo = dataInfo; log.DataType = dataType; this.Add(log); }
private void Add(IAdminLog log) { db.insert(log); }