public void UserAccesLogTest() { UserAccessLog log = new UserAccessLog(); log.UserId = "3707cf22-2ab7-4e4e-9dc2-1eb25155e922"; log.Resource = "Login"; log = log.Insert(); Assert.IsTrue(log != null); return ; }
private bool Add(string userId, string resource) { bool result = false; if (userId != null) { UserAccessLog record = new UserAccessLog(userId, resource); record = record.Insert(); result = record != null; } return result; }