void ICedts_LogRepository.SaveLog(string Action, string ClientIP, string Content, int UserID) { CEDTS_Log log = new CEDTS_Log(); log.UserID = UserID; log.LogTime = DateTime.Now; log.Action = Action; log.ClientIP = ClientIP; log.Content = Content; db.AddToCEDTS_Log(log); db.SaveChanges(); }